@@ -60,6 +60,10 @@ HRESULT CBroom::Initialize(void* pArg)
|
||||
|
||||
m_pWindEffect->Get_Effect_Info()->isBillboard = false;
|
||||
}
|
||||
else {
|
||||
m_fAISeed = m_pGameInstance->Real_Random_Float(0.f, XM_2PI);
|
||||
m_fAICondition = 1.f;
|
||||
}
|
||||
|
||||
|
||||
return S_OK;
|
||||
@@ -81,8 +85,15 @@ void CBroom::Update(_float fTimeDelta)
|
||||
else {
|
||||
m_bHoverToggle = m_Input.bHoverToggle;
|
||||
m_bTurbo = m_Input.bTurbo;
|
||||
}
|
||||
|
||||
m_fAITime += fTimeDelta;
|
||||
|
||||
_float target = 1.f + sinf(m_fAITime * 0.3f + m_fAISeed) * 0.15f;
|
||||
|
||||
m_fAICondition += (target - m_fAICondition) * fTimeDelta * 0.3f;
|
||||
|
||||
m_fAICondition = clamp(m_fAICondition, 0.85f, 1.15f);
|
||||
}
|
||||
if (!m_bRide)
|
||||
{
|
||||
m_bHoverToggle = true;
|
||||
@@ -118,7 +129,7 @@ void CBroom::Update(_float fTimeDelta)
|
||||
return;
|
||||
}
|
||||
|
||||
m_pWindEffect->Set_Visible(true);
|
||||
m_pWindEffect->Set_Visible(false);
|
||||
m_pWindEffect->Get_Component<CInstance_Model>()->Set_TimeMult(0.5f + m_fSpeed / 20.f);
|
||||
m_pWindEffect->Get_Effect_Info()->fBlurIntensity = m_fSpeed / 30.f;
|
||||
|
||||
@@ -283,15 +294,20 @@ void CBroom::PlayerInput()
|
||||
|
||||
if (m_pGameInstance->Key_Up(DIK_LSHIFT))
|
||||
{
|
||||
m_Input.bHoverToggle = !m_Input.bHoverToggle;
|
||||
m_bHoverToggle = m_Input.bHoverToggle;
|
||||
m_bHoverToggle = !m_bHoverToggle;
|
||||
}
|
||||
|
||||
|
||||
m_Input.bTurbo = m_pGameInstance->Mouse_Pressing(DIM_LBUTTON);
|
||||
m_bTurbo = m_Input.bTurbo;
|
||||
}
|
||||
|
||||
void CBroom::Set_AISpeed(_float speedMul, _float accelMul)
|
||||
{
|
||||
m_fAISpeedMul = speedMul;
|
||||
m_fAIAccelMul = accelMul;
|
||||
}
|
||||
|
||||
|
||||
CBroom* CBroom::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
|
||||
{
|
||||
CBroom* pInstance = new CBroom(pDevice, pContext);
|
||||
|
||||
@@ -40,13 +40,25 @@ HRESULT CBroomRaceManager::Initialize(void* pArg)
|
||||
void CBroomRaceManager::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
switch (m_eRaceState)
|
||||
{
|
||||
case ENUM_CLASS(RACE_STATE::COUNTDOWN):
|
||||
Update_Countdown(fTimeDelta);
|
||||
break;
|
||||
case ENUM_CLASS(RACE_STATE::RACING):
|
||||
Check_RingPassed();
|
||||
break;
|
||||
}
|
||||
|
||||
Check_RingPassed();
|
||||
}
|
||||
|
||||
void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Update(fTimeDelta);
|
||||
|
||||
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
@@ -55,6 +67,14 @@ void CBroomRaceManager::Update(_float fTimeDelta)
|
||||
void CBroomRaceManager::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Late_Update(fTimeDelta);
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Render()
|
||||
{
|
||||
m_pGameInstance->Render_Text(TEXT("Font_size20"), ToolTip.c_str(), _float2(g_iWinSizeX*0.5f, g_iWinSizeY*0.5f),XMVectorSet(1.f,1.f,1.f,1.f),5.f);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT CBroomRaceManager::Ready_Components()
|
||||
@@ -123,6 +143,7 @@ void CBroomRaceManager::Describe_Entity()
|
||||
{
|
||||
if (GUI::Button("Race Start"))
|
||||
{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::READY);
|
||||
const _float SPAWN_DISTANCE = 80.f;
|
||||
|
||||
for (auto& racer : m_Racers)
|
||||
@@ -140,25 +161,77 @@ void CBroomRaceManager::Describe_Entity()
|
||||
{
|
||||
CTransform* pBroomTransform =
|
||||
racer.pAI->Get_Broom()->Get_Component<CTransform>();
|
||||
_float fRand = m_pGameInstance->Real_Random_Float(-10.f, 10.f);
|
||||
spawnPos.m128_f32[2] += fRand;
|
||||
|
||||
pBroomTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pBroomTransform->Set_State(STATE::LOOK, ringLook);
|
||||
pBroomTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pAI->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
CTransform* pBroomTransform =
|
||||
racer.pRacer->Get_Broom()->Get_Component<CTransform>();
|
||||
|
||||
pBroomTransform->Set_State(STATE::POSITION, spawnPos);
|
||||
pBroomTransform->Set_State(STATE::LOOK, ringLook);
|
||||
CTransform* pTransform =
|
||||
racer.pRacer->Get_Component<CTransform>();
|
||||
spawnPos.m128_f32[1] -= 2.f;
|
||||
pTransform->Set_State(STATE::POSITION,spawnPos);
|
||||
pTransform->LookAt(pRingTransform->Get_State(STATE::POSITION));
|
||||
racer.pRacer->Get_Component<CFSM>()->Change_State(FSMSTATE::BROOM_RIDE);
|
||||
racer.pRacer->Get_Broom()->Set_Move(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (m_eRaceState == ENUM_CLASS(RACE_STATE::READY))
|
||||
{
|
||||
if (GUI::Button("Countdown"))
|
||||
{
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::COUNTDOWN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // _DEBUG
|
||||
|
||||
void CBroomRaceManager::Update_Countdown(_float fTimeDelta)
|
||||
{
|
||||
m_fCountTimer += fTimeDelta;
|
||||
|
||||
if (m_fCountTimer >= 1.f)
|
||||
{
|
||||
m_fCountTimer = 0.f;
|
||||
--m_iCount;
|
||||
|
||||
if (m_iCount > 0)
|
||||
{
|
||||
ToolTip = to_wstring(m_iCount);
|
||||
}
|
||||
else
|
||||
{
|
||||
ToolTip = to_wstring(0);
|
||||
StartRaceMove();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CBroomRaceManager::StartRaceMove()
|
||||
{
|
||||
for (auto& racer : m_Racers)
|
||||
{
|
||||
if (racer.pAI)
|
||||
{
|
||||
racer.pAI->Get_Broom()->Set_Move(true);
|
||||
}
|
||||
else if (racer.pRacer)
|
||||
{
|
||||
racer.pRacer->Get_Broom()->Set_Move(true);
|
||||
}
|
||||
}
|
||||
|
||||
m_eRaceState = ENUM_CLASS(RACE_STATE::RACING);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CBroomRaceManager::Check_RingPassed()
|
||||
{
|
||||
const float PASS_RADIUS = 5.f;
|
||||
|
||||
@@ -86,8 +86,6 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
m_Batch = make_unique<PrimitiveBatch<VertexPositionColor>>(m_pContext);
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
m_pBroom->Set_Ride(true);
|
||||
|
||||
m_pBroomRaceManager = static_cast<CBroomRaceManager*>(pArg);
|
||||
@@ -100,16 +98,32 @@ HRESULT CBroomRacerAI::Initialize(void* pArg)
|
||||
|
||||
m_pBroomRaceManager->Push_BroomRacer(Info);
|
||||
|
||||
m_LaneOffsetX = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
||||
m_LaneOffsetY = m_pGameInstance->Real_Random_Float(-3.f, 3.f);
|
||||
|
||||
m_TurnGain = m_pGameInstance->Real_Random_Float(0.85f, 1.15f);
|
||||
m_HeightGain = m_pGameInstance->Real_Random_Float(0.85f, 1.15f);
|
||||
|
||||
m_pBroom->Set_AISpeed(
|
||||
m_pGameInstance->Real_Random_Float(0.8f, 1.2f),
|
||||
m_pGameInstance->Real_Random_Float(0.8f, 1.2f)
|
||||
);
|
||||
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Priority_Update(_float fTimeDelta)
|
||||
{
|
||||
__super::Priority_Update(fTimeDelta);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Update(_float fTimeDelta)
|
||||
{
|
||||
Set_Input(fTimeDelta);
|
||||
|
||||
m_pFSM->Update_State(fTimeDelta);
|
||||
|
||||
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
|
||||
@@ -124,7 +138,6 @@ void CBroomRacerAI::Update(_float fTimeDelta)
|
||||
|
||||
void CBroomRacerAI::Late_Update(_float fTimeDelta)
|
||||
{
|
||||
Set_Input(fTimeDelta);
|
||||
|
||||
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
|
||||
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
|
||||
@@ -247,17 +260,23 @@ HRESULT CBroomRacerAI::Ready_Components()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 1);
|
||||
if (iRand == 0)
|
||||
_int iRand = m_pGameInstance->Real_Random_Int(0, 2);
|
||||
|
||||
switch (iRand)
|
||||
{
|
||||
case 0:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_VictorRookWood_Model");
|
||||
}
|
||||
else {
|
||||
break;
|
||||
case 1:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Npc_Model");
|
||||
break;
|
||||
case 2:
|
||||
m_strModelPrototypeTag = TEXT("Prototype_Component_Ghost_Peeves_Model");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Com_Model */
|
||||
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
|
||||
reinterpret_cast<CComponent**>(&m_pModelCom)))) {
|
||||
@@ -318,6 +337,10 @@ HRESULT CBroomRacerAI::Bind_ShaderResources()
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
_float Intensity = 0.f;
|
||||
if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -379,11 +402,11 @@ HRESULT CBroomRacerAI::Bind_ShaderParameters(_uint iMeshOrder)
|
||||
_vector CBroomRacerAI::Get_RingForwardTarget()
|
||||
{
|
||||
_vector ringPos = m_pRaceRing->Get_WorldPostion();
|
||||
_vector ringFwd = m_pRaceRing->Get_Component<CTransform>()
|
||||
->Get_State(STATE::RIGHT);
|
||||
_vector ringFwd = m_pRaceRing->Get_Component<CTransform>()->Get_State(STATE::RIGHT);
|
||||
ringFwd = XMVector3Normalize(ringFwd);
|
||||
|
||||
_vector targetPos = ringPos + ringFwd;
|
||||
targetPos = XMVectorSet(targetPos.m128_f32[0] + m_LaneOffsetX, targetPos.m128_f32[1] + m_LaneOffsetY, targetPos.m128_f32[2], 1.f);
|
||||
|
||||
return targetPos;
|
||||
}
|
||||
@@ -395,14 +418,12 @@ _float CBroomRacerAI::ComputeTurnToRing()
|
||||
_vector toTarget = targetPos - m_pBroom->Get_WorldPostion();
|
||||
toTarget = XMVector3Normalize(XMVectorSetY(toTarget, 0.f));
|
||||
|
||||
_vector myLook = m_pBroom->Get_Component<CTransform>()
|
||||
->Get_State(STATE::LOOK);
|
||||
_vector myLook = m_pBroom->Get_Component<CTransform>()->Get_State(STATE::LOOK);
|
||||
myLook = XMVector3Normalize(XMVectorSetY(myLook, 0.f));
|
||||
|
||||
_float turn = XMVectorGetY(XMVector3Cross(myLook, toTarget));
|
||||
|
||||
_float dist =
|
||||
XMVectorGetX(XMVector3Length(targetPos - m_pBroom->Get_WorldPostion()));
|
||||
_float dist = XMVectorGetX(XMVector3Length(targetPos - m_pBroom->Get_WorldPostion()));
|
||||
|
||||
_float atten = clamp(dist / 40.f, 0.f, 1.f);
|
||||
|
||||
@@ -420,8 +441,7 @@ _float CBroomRacerAI::ComputeHeightAdjust()
|
||||
|
||||
_float dy = XMVectorGetY(targetPos) - XMVectorGetY(broomPos);
|
||||
|
||||
_float dist =
|
||||
XMVectorGetX(XMVector3Length(targetPos - broomPos));
|
||||
_float dist = XMVectorGetX(XMVector3Length(targetPos - broomPos));
|
||||
|
||||
_float atten = clamp(dist / 40.f, 0.f, 1.f);
|
||||
|
||||
@@ -522,9 +542,10 @@ HRESULT CBroomRacerAI::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
if (!m_pBroom->Get_Hover())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Behavior_Broom_HoverExit()
|
||||
@@ -585,9 +606,10 @@ HRESULT CBroomRacerAI::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
if (m_pBroom->Get_Hover())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Behavior_Broom_FlyExit()
|
||||
@@ -614,9 +636,10 @@ HRESULT CBroomRacerAI::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
if (m_pBroom->Get_Hover())
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::BROOM_RIDE_MOVE);
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
return E_FAIL;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
void CBroomRacerAI::Behavior_Broom_TurboFlyExit()
|
||||
@@ -749,13 +772,24 @@ void CBroomRacerAI::Set_Input(_float fTimeDelta)
|
||||
_float targetX = ComputeTurnToRing();
|
||||
_float targetY = ComputeHeightAdjust();
|
||||
|
||||
CBroom::BroomInput InputDesc;
|
||||
InputDesc.Z = 1.f;
|
||||
InputDesc.X = targetX;
|
||||
InputDesc.Y = targetY;
|
||||
InputDesc.bHoverToggle = false;
|
||||
CBroom::BroomInput InputDesc{};
|
||||
|
||||
InputDesc.X = 0.f;
|
||||
InputDesc.Y = 0.f;
|
||||
InputDesc.Z = 0.f;
|
||||
|
||||
/*if (m_bMove)
|
||||
{*/
|
||||
InputDesc.Z = 1.f;
|
||||
InputDesc.X = targetX*m_TurnGain;
|
||||
InputDesc.Y = targetY*m_HeightGain;
|
||||
//}
|
||||
|
||||
InputDesc.bHoverToggle = (m_pBroomRaceManager->Get_RaceState() != ENUM_CLASS(CBroomRaceManager::RACE_STATE::RACING));
|
||||
|
||||
InputDesc.bTurbo = false;
|
||||
|
||||
m_pBroom->Set_Input(InputDesc);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -123,6 +123,9 @@ void CBroom::Behavior_MoveEnter()
|
||||
|
||||
HRESULT CBroom::Behavior_MoveExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bMove)
|
||||
return S_OK;
|
||||
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
|
||||
@@ -183,6 +186,8 @@ void CBroom::Behavior_Broom_HoverEnter()
|
||||
|
||||
HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (false == m_bMove)
|
||||
return S_OK;
|
||||
pair<_uint, _bool> pairAnimInfo = {};
|
||||
_uint iCurrentAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
_bool bFwd = m_Input.Z > 0.f;
|
||||
@@ -317,15 +322,6 @@ HRESULT CBroom::Behavior_Broom_HoverExitCheck(_float fTimeDelta)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
|
||||
}
|
||||
|
||||
if (bShift)
|
||||
{
|
||||
m_bHoverToggle = false;
|
||||
}
|
||||
if (bTurbo)
|
||||
{
|
||||
m_bTurbo = true;
|
||||
}
|
||||
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
}
|
||||
|
||||
@@ -376,6 +372,7 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
|
||||
if (bFwd) {
|
||||
m_fTargetSpeed = m_fFlyMaxSpeed;
|
||||
}
|
||||
@@ -387,7 +384,13 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
m_fTargetSpeed = m_fFlyMaxSpeed;
|
||||
}
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fFlyAccel;
|
||||
if (m_pParentUnit->IsAI())
|
||||
{
|
||||
m_fTargetSpeed *= m_fAICondition;
|
||||
m_fTargetSpeed *= m_fAISpeedMul;
|
||||
}
|
||||
|
||||
m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fFlyAccel* m_fAIAccelMul;
|
||||
m_pTransformCom->Go_LerpStraight(m_fSpeed, fTimeDelta);
|
||||
|
||||
_float fTargetVertSpeed = 0.f;
|
||||
@@ -495,15 +498,6 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
}
|
||||
}
|
||||
|
||||
if (bShift)
|
||||
{
|
||||
m_bHoverToggle = true;
|
||||
}
|
||||
if (bTurbo)
|
||||
{
|
||||
m_bTurbo = true;
|
||||
}
|
||||
|
||||
if (m_bHoverToggle)
|
||||
{
|
||||
m_fTargetSpeed = 0.f;
|
||||
@@ -515,17 +509,17 @@ HRESULT CBroom::Behavior_Broom_FlyExitCheck(_float fTimeDelta)
|
||||
pairAnimInfo = m_Animation[STATEANIM::BROOM_HOVER_STOP_B];
|
||||
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
|
||||
|
||||
if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
/*if (bShift && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
{
|
||||
m_bHoverToggle = false;
|
||||
}
|
||||
}*/
|
||||
if (SUCCEEDED(InputAction()) || SUCCEEDED(InputMove()))
|
||||
{
|
||||
if (fRatio >= 0.5f && iCurrentAnimIndex == m_Animation[STATEANIM::BROOM_HOVER_STOP_B].first)
|
||||
{
|
||||
m_pFSM->Change_State(FSMSTATE::HOVER);
|
||||
return E_FAIL;
|
||||
}
|
||||
return E_FAIL;
|
||||
}
|
||||
if (m_pModelCom->IsFinishedAnim())
|
||||
{
|
||||
@@ -573,19 +567,6 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
_bool bShift = m_Input.bHoverToggle;
|
||||
_bool bTurbo = m_Input.bTurbo;
|
||||
|
||||
if (bShift)
|
||||
{
|
||||
m_bHoverToggle = true;
|
||||
}
|
||||
|
||||
if (bTurbo)
|
||||
{
|
||||
m_bTurbo = true;
|
||||
}
|
||||
else {
|
||||
m_bTurbo = false;
|
||||
}
|
||||
|
||||
if (!m_bHoverToggle)
|
||||
{
|
||||
if (SUCCEEDED(InputMove()))
|
||||
@@ -649,20 +630,20 @@ HRESULT CBroom::Behavior_Broom_TurboFlyExitCheck(_float fTimeDelta)
|
||||
{
|
||||
if (vInput.z <= 0.f)
|
||||
{
|
||||
Camera_InterpTurn(fTimeDelta * 0.3f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.35f);
|
||||
}
|
||||
else {
|
||||
Camera_InterpTurn(fTimeDelta * 0.15f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.2f);
|
||||
}
|
||||
}
|
||||
else if (vInput.x > 0.f)
|
||||
{
|
||||
if (vInput.z <= 0.f)
|
||||
{
|
||||
Camera_InterpTurn(fTimeDelta * 0.3f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.35f);
|
||||
}
|
||||
else {
|
||||
Camera_InterpTurn(fTimeDelta * 0.15f);
|
||||
Camera_InterpTurn(fTimeDelta * 0.2f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -837,7 +818,7 @@ void CBroom::Add_FSM()
|
||||
Desc.funcExitCheck = [this](_float fTimedelta) { return Behavior_MoveExitCheck(fTimedelta); };
|
||||
Desc.funcExitEvent = [this]() { Behavior_MoveExit(); };
|
||||
Desc.funcPriorityUpdate = [this](_float fTimeDelta) {
|
||||
if (m_bHoverToggle)
|
||||
if (m_bHoverToggle && m_bMove)
|
||||
{
|
||||
_float3 fMove = m_pGameInstance->Get_MouseMove();
|
||||
m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.02f);
|
||||
|
||||
@@ -279,7 +279,10 @@ void CDialogue::Free()
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CDialogue::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
|
||||
@@ -604,7 +604,7 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
|
||||
|
||||
HRESULT CLevel_GamePlay::Ready_Layer_BroomRacerAI(const _wstring& strLayerTag)
|
||||
{
|
||||
for (_uint i = 0; i < 1; ++i) {
|
||||
for (_uint i = 0; i < 10; ++i) {
|
||||
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CBroomRacerAI>(g_iStaticLevel, NEXT_LEVEL, strLayerTag, m_pBroomRaceManager))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
@@ -1529,7 +1529,7 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_INSTANCE_PROP_MODEL,
|
||||
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_VtxWorldModelInstance.hlsl"),
|
||||
VTX_MODEL_INSTANCE_MODEL::Elements, VTX_MODEL_INSTANCE_MODEL::iNumElements)))) {
|
||||
return E_FAIL;
|
||||
@@ -1764,11 +1764,6 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Goblin_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Goblin/Goblin.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
return E_FAIL;
|
||||
@@ -1792,6 +1787,16 @@ HRESULT CLoader::Loading_For_GamePlay()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_VictorRookWood_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/VictorRookWood/VictorRookWood.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ghost_Peeves_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Troll_Model"),
|
||||
CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/SubTroll/troll.bin", XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))){
|
||||
return E_FAIL;
|
||||
|
||||
@@ -310,7 +310,10 @@ void CNPCInteraction::Free()
|
||||
SAFE_RELEASE(m_pShaderCom);
|
||||
SAFE_RELEASE(m_pVIBufferCom);
|
||||
}
|
||||
|
||||
#ifdef _DEBUG
|
||||
void CNPCInteraction::Describe_Entity()
|
||||
{
|
||||
}
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
|
||||
@@ -3124,7 +3124,7 @@ void CPlayer::Add_FSM()
|
||||
_uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
|
||||
if (!m_bOnce) {
|
||||
m_pBroomTransform->Set_WorldMatrix(m_pTransformCom->Get_XMWorldMatrix());
|
||||
m_pBroomTransform->Set_State(STATE::POSITION, m_pBroomTransform->Get_State(STATE::POSITION) + XMVectorSet(0.f,2.f,0.f,0.f));
|
||||
m_pBroomTransform->Set_State(STATE::POSITION, m_pTransformCom->Get_State(STATE::POSITION) + XMVectorSet(0.f,2.f,0.f,0.f));
|
||||
_float3 vScale = { 0.3f,0.3f,0.3f };
|
||||
m_pBroomTransform->Set_Scale(vScale);
|
||||
m_bOnce = true;
|
||||
|
||||
@@ -29,11 +29,12 @@ HRESULT CRaceRing::Initialize(void* pArg)
|
||||
if (FAILED(Ready_Components())) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pBroomRaceManager = static_cast<RACERING_DESC*>(pArg)->pBroomRaceManager;
|
||||
m_iIndex = static_cast<RACERING_DESC*>(pArg)->iIndex;
|
||||
_float X = m_pGameInstance->Real_Random_Float(-200.f, 200.f);
|
||||
_float Y = m_pGameInstance->Real_Random_Float(15.f, 45.f);
|
||||
_float Z = m_pGameInstance->Real_Random_Float(-15.f, 15.f);
|
||||
_float Y = m_pGameInstance->Real_Random_Float(15.f, 60.f);
|
||||
_float Z = m_pGameInstance->Real_Random_Float(-50.f, 50.f);
|
||||
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet((_float)m_iIndex *100.f, Y, Z, 1.f));
|
||||
|
||||
|
||||
@@ -405,10 +405,10 @@ void CRanrok::Behavior_FireBallEnter()
|
||||
break;
|
||||
}
|
||||
|
||||
Add_Event(pairAnimInfo.first,
|
||||
[this]() {
|
||||
m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
|
||||
}, 0.1f);
|
||||
//Add_Event(pairAnimInfo.first,
|
||||
// [this]() {
|
||||
// m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_FIREBALL, this);
|
||||
// }, 0.1f);
|
||||
|
||||
}
|
||||
else if (m_ePhase == ENUM_CLASS(RANROK_PHASE::PHASE_GROUND))
|
||||
|
||||
@@ -35,6 +35,8 @@ class CBroom final : public CUnit
|
||||
_bool Get_Turbo() { return m_bTurbo; }
|
||||
|
||||
void Set_Input(BroomInput broomInput) { m_Input = broomInput; }
|
||||
void Set_AISpeed(_float speedMul, _float accelMul);
|
||||
void Set_Move(_bool bMove) { m_bMove = bMove; }
|
||||
HRESULT Ready_Child();
|
||||
private:
|
||||
CInfoInstance* m_pInfoInstance = { nullptr };
|
||||
@@ -60,13 +62,23 @@ class CBroom final : public CUnit
|
||||
_float m_fTurnDecel = 0.3f;
|
||||
_float m_fVerticalSpeed = 0.f;
|
||||
|
||||
|
||||
_float m_fFlyAccel = 1.f;
|
||||
_float m_fFlyDecel = 1.f;
|
||||
|
||||
_float m_fTurboAccel = 1.3f;
|
||||
_float m_fTurboDecel = 0.6f;
|
||||
|
||||
_bool m_bMove = { true };
|
||||
|
||||
#pragma region AI
|
||||
_float m_fAISpeedMul = 1.f;
|
||||
_float m_fAIAccelMul = 1.f;
|
||||
|
||||
_float m_fAICondition = 1.f;
|
||||
_float m_fAISeed = 0.f;
|
||||
_float m_fAITime = 0.f;
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
_float3 m_vCameraLookDir = { 0.f, 0.f, 1.f, };
|
||||
@@ -76,7 +88,6 @@ class CBroom final : public CUnit
|
||||
class CEffectParts* m_pWindEffect = { nullptr };
|
||||
_float m_fCameraOffset = { 10.f };
|
||||
|
||||
_bool m_bHit = { false };
|
||||
private:
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources();
|
||||
|
||||
@@ -16,6 +16,17 @@ class CBroomRaceManager final : public CGameObject
|
||||
_vector prevPos = XMVectorZero();
|
||||
};
|
||||
|
||||
enum class RACE_STATE
|
||||
{
|
||||
READY,
|
||||
COUNTDOWN,
|
||||
START,
|
||||
RACING,
|
||||
FINISH,
|
||||
END
|
||||
};
|
||||
|
||||
|
||||
private:
|
||||
CBroomRaceManager(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
CBroomRaceManager(const CBroomRaceManager& Prototype);
|
||||
@@ -25,19 +36,25 @@ class CBroomRaceManager final : public CGameObject
|
||||
virtual void Priority_Update(_float fTimeDelta) override;
|
||||
virtual void Update(_float fTimeDelta) override;
|
||||
virtual void Late_Update(_float fTimeDelta) override;
|
||||
virtual HRESULT Render() override;
|
||||
void SetTargetRing(CGameObject* pRacer);
|
||||
void Push_BroomRacer(RacerInfo Info);
|
||||
void Push_RaceRing(class CRaceRing* Ring);
|
||||
_int Get_RaceState() const { return m_eRaceState; }
|
||||
private:
|
||||
vector<class CRaceRing*> m_pRaceRings = {};
|
||||
vector<RacerInfo> m_Racers = {};
|
||||
|
||||
|
||||
_float m_fCountTimer = {};
|
||||
_int m_iCount = { 3 };
|
||||
_int m_eRaceState = { ENUM_CLASS(RACE_STATE::END) };
|
||||
_wstring ToolTip;
|
||||
private:
|
||||
virtual HRESULT Initialize_Prototype() override;
|
||||
virtual HRESULT Initialize(void* pArg) override;
|
||||
HRESULT Ready_Components();
|
||||
HRESULT Bind_ShaderResources() override;
|
||||
void Update_Countdown(_float fTimeDelta);
|
||||
void StartRaceMove();
|
||||
void Check_RingPassed();
|
||||
|
||||
public:
|
||||
|
||||
@@ -41,6 +41,7 @@ class CBroomRacerAI final : public CUnit
|
||||
virtual void OnHit(CGameObject* pOther, CGameObject* pCaller = nullptr)override;
|
||||
void Set_RaceRing(class CRaceRing* pRaceRing) {m_pRaceRing = pRaceRing;}
|
||||
class CBroom* Get_Broom() { return m_pBroom; }
|
||||
void Set_Move(_bool bMove) { m_bMove = bMove; }
|
||||
private:
|
||||
CLight* m_pLightCom = { nullptr };
|
||||
LIGHT_DESC LightDesc = {};
|
||||
@@ -99,6 +100,11 @@ class CBroomRacerAI final : public CUnit
|
||||
_float m_fScaleSmoothSpeed = 2.5f;
|
||||
_float m_fAnimTime = {};
|
||||
_bool m_bTurbo = {};
|
||||
_bool m_bMove = {};
|
||||
_float m_LaneOffsetX = 0.f;
|
||||
_float m_LaneOffsetY = 0.f;
|
||||
_float m_TurnGain = 1.f;
|
||||
_float m_HeightGain =1.f;
|
||||
|
||||
void Behavior_Broom_Ride_MoveEnter();
|
||||
HRESULT Behavior_Broom_Ride_MoveExitCheck(_float fTimeDelta);
|
||||
|
||||
@@ -59,7 +59,9 @@ class CDialogue final : public CElementObject
|
||||
static CDialogue* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
@@ -66,7 +66,11 @@ class CNPCInteraction final : public CGameObject
|
||||
static CNPCInteraction* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // DEBUG
|
||||
|
||||
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 69 B |
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -0,0 +1,237 @@
|
||||
<Material>
|
||||
<MI_Ghost_P ShaderIndex = "8" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Ghost_Peeves_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Ghost_P>
|
||||
<MI_GHO_M_Hair_GHOHair03_Peeves ShaderIndex = "4" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_Hair_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Ghost_Peeves_Hair_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_Hair_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_GHO_M_Hair_GHOHair03_Peeves>
|
||||
<MI_HUM_M_Body_PeevesArms ShaderIndex = "1" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_Arms_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Adult_M_Arms_Ivory_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_Arms_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_M_Body_PeevesArms>
|
||||
|
||||
<MI_HUM_N_Heads_Eyelash ShaderIndex = "0" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Ghost_Peeves_Hair_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Ghost_Peeves_Hair_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Ghost_Peeves_Hair_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_Eyelash>
|
||||
|
||||
<MI_HUM_N_Heads_Teeth_2_Poltergiest ShaderIndex = "1" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_HUM_Head_Teeth_Decay5_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_HUM_Head_Teeth_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="T_HUM_Head_Teeth_SRXO" Extension=".dds"/>
|
||||
</MI_HUM_N_Heads_Teeth_2_Poltergiest>
|
||||
<MI_Adult_M_Peeves ShaderIndex = "6" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Old_M_Head_Peeves_D" Extension=".dds"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Old_M_Head_Peeves_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Old_M_Head_Peeves_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_Adult_M_Peeves>
|
||||
<MI_HUM_N_Heads_EyeOcclusion ShaderIndex = "3" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_DefaultGrey_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="" Extension=""/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="BaseFlattenNormalMap" Extension=".png"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_N_Heads_EyeOcclusion>
|
||||
<MI_HUM_M_Heads_Eye_PoltergiestTEst ShaderIndex = "2" OutLineWrite="0">
|
||||
<aiTextureType_NONE Index="0" Filename="" Extension=""/>
|
||||
<aiTextureType_DIFFUSE Index="1" Filename="T_Poltergeist_Eye_D" Extension=".png"/>
|
||||
<aiTextureType_SPECULAR Index="2" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT Index="3" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSIVE Index="4" Filename="T_Poltergeist_Eye_E" Extension=".dds"/>
|
||||
<aiTextureType_HEIGHT Index="5" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMALS Index="6" Filename="T_Eye_Wetness_N" Extension=".dds"/>
|
||||
<aiTextureType_SHININESS Index="7" Filename="" Extension=""/>
|
||||
<aiTextureType_OPACITY Index="8" Filename="" Extension=""/>
|
||||
<aiTextureType_DISPLACEMENT Index="9" Filename="" Extension=""/>
|
||||
<aiTextureType_LIGHTMAP Index="10" Filename="" Extension=""/>
|
||||
<aiTextureType_REFLECTION Index="11" Filename="" Extension=""/>
|
||||
<aiTextureType_BASE_COLOR Index="12" Filename="" Extension=""/>
|
||||
<aiTextureType_NORMAL_CAMERA Index="13" Filename="" Extension=""/>
|
||||
<aiTextureType_EMISSION_COLOR Index="14" Filename="" Extension=""/>
|
||||
<aiTextureType_METALNESS Index="15" Filename="T_Poltergeist_Eye_MRO" Extension=".dds"/>
|
||||
<aiTextureType_DIFFUSE_ROUGHNESS Index="16" Filename="" Extension=""/>
|
||||
<aiTextureType_AMBIENT_OCCLUSION Index="17" Filename="" Extension=""/>
|
||||
<aiTextureType_UNKNOWN Index="18" Filename="" Extension=""/>
|
||||
<aiTextureType_SHEEN Index="19" Filename="" Extension=""/>
|
||||
<aiTextureType_CLEARCOAT Index="20" Filename="" Extension=""/>
|
||||
<aiTextureType_TRANSMISSION Index="21" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_BASE Index="22" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR Index="23" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_COLOR Index="24" Filename="" Extension=""/>
|
||||
<aiTextureType_MAYA_SPECULAR_ROUGHNESS Index="25" Filename="" Extension=""/>
|
||||
<aiTextureType_ANISOTROPY Index="26" Filename="" Extension=""/>
|
||||
</MI_HUM_M_Heads_Eye_PoltergiestTEst>
|
||||
|
||||
</Material>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
|
After Width: | Height: | Size: 415 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 371 KiB |
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -27,6 +27,8 @@ float g_fOutLinePower;
|
||||
float g_fUsingSurfaceParams;
|
||||
float g_fEtherealRatio;
|
||||
float g_fMixerFactor;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
|
||||
|
||||
Texture2D g_DiffuseTexture : register(t00);
|
||||
@@ -326,7 +328,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
|
||||
(In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
|
||||
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
|
||||
1.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -367,7 +369,7 @@ PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -395,7 +397,7 @@ PS_OUT PS_TEETH_SRXO_ToSRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vSRXO_MASK.r, vSRXO_MASK.g, vSRXO_MASK.a, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -422,7 +424,7 @@ PS_OUT PS_EYE_DN_SRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(0.5f, 0.5f, 1.f, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -472,7 +474,7 @@ PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -514,7 +516,7 @@ PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -541,7 +543,7 @@ PS_OUT PS_HEADwtHAND_DSRXON_ToSRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vSRXO_Mask.r, vSRXO_Mask.g, vSRXO_Mask.a, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -569,7 +571,7 @@ PS_OUT PS_LOWER_DSRON_ToSRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vSRO_Mask.r, vSRO_Mask.g, vSRO_Mask.b, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -597,7 +599,7 @@ PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// MRO
|
||||
return Out;
|
||||
}
|
||||
@@ -625,7 +627,7 @@ PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -654,7 +656,7 @@ PS_OUT PS_EmissiveMetalness_DENMRO_ToMRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -683,7 +685,7 @@ PS_OUT PS_DNMRO_ToMRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO_Mask.r, vMRO_Mask.g, vMRO_Mask.b, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -712,7 +714,7 @@ PS_OUT PS_MI_ClothSim_DSEN_ToSRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vSpecular_Mask.r, 0.5f, 1.f, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -747,7 +749,7 @@ PS_OUT PS_MI_DANSROMRO_ToSRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vSRO_Mask.r, Roughness, Occlusion, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -783,7 +785,7 @@ PS_OUT PS_Troll_Club_DAENMROSRXO_ToMROX(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO_MASK.r, Roughness, Occlusion, vSRXO_Mask.b);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -826,7 +828,7 @@ PS_OUT PS_Player_EyeLash_DAOTHV_ToSRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(lerp(0.1f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
PS_OUT PS_Player_Eye_ToMRO(PS_IN In)
|
||||
@@ -851,7 +853,7 @@ PS_OUT PS_Player_Eye_ToMRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMROColor.r, vMROColor.g, vMROColor.b, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
PS_OUT PS_Player_Robe_ToMRO(PS_IN In)
|
||||
@@ -878,7 +880,7 @@ PS_OUT PS_Player_Robe_ToMRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMROColor.r, vMROColor.g, vMROColor.b, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
PS_OUT PS_Player_Suit_DSRON_ToSRO(PS_IN In)
|
||||
@@ -903,7 +905,7 @@ PS_OUT PS_Player_Suit_DSRON_ToSRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vSROColor.r, vSROColor.g, vSROColor.b, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
PS_OUT PS_Player_HairDAOTHV_ToSRO(PS_IN In)
|
||||
@@ -947,7 +949,7 @@ PS_OUT PS_Player_HairDAOTHV_ToSRO(PS_IN In)
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(lerp(0.7f, 0.3f, SpecMask), SpecMask * 0.5f, AoMask_Dao * AoMask_Thv, 0.f);
|
||||
// SRO
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -1017,7 +1019,7 @@ PS_OUT PS_Dragon_Body(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
@@ -1050,7 +1052,7 @@ PS_OUT PS_Dragon_Wings(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(vMRO, 0.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
// SRO
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ float g_fOutLinePower;
|
||||
float g_fDisolveRatio;
|
||||
float g_fDisolveAmount;
|
||||
float g_fDisolveEdgeWidth;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
float4 g_vDisolveEdgeColor;
|
||||
float4 g_vCamPosition;
|
||||
@@ -416,7 +417,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -480,7 +481,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
(float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
|
||||
1.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ vector g_vCamPosition;
|
||||
uint g_iIndexU;
|
||||
uint g_iIndexV;
|
||||
float2 g_vTime;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
float g_fDisolveRatio;
|
||||
float g_fUsingSurfaceParams;
|
||||
@@ -442,7 +443,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -478,7 +479,7 @@ PS_OUT PS_GLASS(PS_IN In)
|
||||
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = float2(0.5f, 0.5f);
|
||||
//CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
//CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -507,7 +508,7 @@ PS_OUT PS_GLASS_CUBE(PS_IN In)
|
||||
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, 15.f / 27.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = float2(0.5f, 0.5f);
|
||||
//CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
//CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -697,7 +698,7 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE(PS_IN_OUTLINE In)
|
||||
(In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
|
||||
AI_TEXTURE_TYPE_METALNESS, // 서페이스 파라미터
|
||||
1.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -762,7 +763,7 @@ PS_OUT PS_LAKE(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -798,7 +799,7 @@ PS_OUT PS_LAND(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -826,7 +827,7 @@ PS_OUT PS_NONMRO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = g_vSurfaceColor;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -868,7 +869,7 @@ PS_OUT PS_SPECTOR_WEAPON_MAIN(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -920,7 +921,7 @@ PS_OUT PS_LEVIOSO(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -75,6 +75,7 @@ Texture2D g_SurfaceParamsTexture : register(t10);
|
||||
float4 g_vCamPosition;
|
||||
float g_fFar;
|
||||
float g_fUsingSurfaceParams;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
/* 디퓨즈 */
|
||||
vector g_vColor;
|
||||
@@ -883,7 +884,7 @@ PS_NOMAL_OUT PS_MAIN(PS_BLUR_MESH_IN In)
|
||||
|
||||
vSurface.b = 0.5f;
|
||||
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
Out.vAlbedo = vMtrlDiffuse;
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
|
||||
@@ -9,6 +9,7 @@ float g_fUsingSurfaceParams;
|
||||
float g_fDiffuseMultiplier;
|
||||
float g_fSurfaceMultiplier;
|
||||
float g_fNormalMultiplier;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
Texture2D g_DiffuseTexture;
|
||||
Texture2D g_NormalTexture;
|
||||
@@ -131,7 +132,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
1.f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
@@ -190,7 +191,7 @@ PS_OUT PS_MAIN_TERRAIN_ANISO(PS_IN In)
|
||||
(1.f / 255.f)); // 지형은 1
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = vSurface;
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ Texture2D g_SurfaceParamsTexture;
|
||||
float4 g_vCamPosition;
|
||||
float g_fFar;
|
||||
float g_fUsingSurfaceParams;
|
||||
float g_fMBIntensity = 1.f;
|
||||
|
||||
|
||||
struct VS_IN
|
||||
@@ -112,7 +113,7 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
Out.vDepth = float4(In.vProjPos.z / In.vProjPos.w, In.vProjPos.w / g_fFar, g_fUsingSurfaceParams, 0.0f);
|
||||
Out.vColor = float4(0.f, 0.f, 0.f, 1.f);
|
||||
Out.vSurface = float4(g_SurfaceParamsTexture.Sample(DefaultSampler, In.vTexcoord).xy, 1.f, 1.f);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
|
||||
Out.vVelocityUV = CalcVelocityUV(In.vProjPos, In.vPrevProjPos, g_fMBIntensity);
|
||||
|
||||
return Out;
|
||||
}
|
||||
|
||||
@@ -2422,17 +2422,10 @@ HRESULT CLoader::Loading_For_ObjectViewer()
|
||||
));
|
||||
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/EleazarFig/Professor_EleazarFig_Anim.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Professor_EleazarFig_Model")
|
||||
MODEL::PBR_ANIM, "../Bin/Resources/Models/Human/Npc/Ghost_Peeves/Ghost_Peeves.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_Ghost_Peeves_Model")
|
||||
));
|
||||
|
||||
//if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_ConjuredDragon_Model"),
|
||||
// CModel::Create(m_pDevice, m_pContext, MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f))* XMMatrixIdentity()))))
|
||||
// return E_FAIL;
|
||||
futures.emplace_back(Deferred_ModelLoad(
|
||||
MODEL::ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin", XMMatrixIdentity(),
|
||||
TEXT("Prototype_Component_ConjuredDragon_Anim_Model")
|
||||
));
|
||||
|
||||
#pragma endregion
|
||||
|
||||
|
||||
@@ -62,9 +62,9 @@ void CNPCStat::Free()
|
||||
void CNPCStat::Describe_Entity()
|
||||
{
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
CNPCStat::NPCINFO CNPCStat::Get_Stat()
|
||||
{
|
||||
return m_NpcInfo;
|
||||
}
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
@@ -169,32 +169,32 @@ class ENGINE_DLL CModel final : public CComponent
|
||||
vector<_bool> m_CPUBoneMask;
|
||||
|
||||
// 바이너리
|
||||
SaveModel* m_pSaveModel = { nullptr };
|
||||
SaveModel* m_pSaveModel = { nullptr };
|
||||
//
|
||||
|
||||
|
||||
vector<_float4x4> m_BoneMatrix;
|
||||
vector<_float4x4> m_BoneMatrix;
|
||||
|
||||
_float3 m_vPrevRootPos = { 0.f, 0.f, 0.f };
|
||||
_float4 m_vPrevRootRot = { 0.f, 0.f, 0.f,0.f };
|
||||
_matrix m_BoneTransformationMatrix = {};
|
||||
_float4 m_vInitialRootRot = {};
|
||||
_float3 m_vPrevRootPos = { 0.f, 0.f, 0.f };
|
||||
_float4 m_vPrevRootRot = { 0.f, 0.f, 0.f,0.f };
|
||||
_matrix m_BoneTransformationMatrix = {};
|
||||
_float4 m_vInitialRootRot = {};
|
||||
|
||||
_float m_fRadius = { 0.f }; // 컬링용 Radius
|
||||
_int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스
|
||||
_int m_iIndexAnimPlayableMesh = { -1 };
|
||||
_vector m_vector[3];
|
||||
_float m_fRadius = { 0.f }; // 컬링용 Radius
|
||||
_int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스
|
||||
_int m_iIndexAnimPlayableMesh = { -1 };
|
||||
_vector m_vector[3];
|
||||
|
||||
vector<_uint> m_iBoneMask;
|
||||
_bool m_bInitialRootPos = { false };
|
||||
_bool m_bInitialRootRotSaved = { false };
|
||||
_bool m_bLoopRestarted = false;
|
||||
_bool m_bIsSecondFinishedAnim = { false };
|
||||
_bool m_bIsSecondLoop = { false };
|
||||
_bool m_bRatio = { false };
|
||||
_bool m_bRootBone = {};
|
||||
_float4x4 m_RootMatrix = {};
|
||||
_bool m_bTemp = {false};
|
||||
vector<_uint> m_iBoneMask;
|
||||
_bool m_bInitialRootPos = { false };
|
||||
_bool m_bInitialRootRotSaved = { false };
|
||||
_bool m_bLoopRestarted = false;
|
||||
_bool m_bIsSecondFinishedAnim = { false };
|
||||
_bool m_bIsSecondLoop = { false };
|
||||
_bool m_bRatio = { false };
|
||||
_bool m_bRootBone = {};
|
||||
_float4x4 m_RootMatrix = {};
|
||||
_bool m_bTemp = {false};
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user