diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 3ac1e5d5d..5c51ddefb 100644
--- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -64,13 +64,21 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iBoosterOn;
+int g_iBoosterOff;
int g_iClick;
int g_iColor;
+int g_Count;
+int g_ChaseCount;
int g_iStep1 = 0;
int g_iStep2 = 0;
int g_iStep3 = 0;
+float2 g_Trail[200];
+float2 g_ChaseTrail[200];
+
+
struct VS_IN
{
float3 vPosition : POSITION;
@@ -1795,32 +1803,105 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
Color = tex;
Color.rgb *= tex1.rgb;
-
- float2 rectPos = g_fPosition;
+
+ float2 rectPos = g_fPosition - float2(256.f, 259.f);
float2 rectSize = g_fCurrent_Size;
float2 itemPos = g_fItemPosition1;
float2 itemSize = g_fItemImageSizes1;
- float x0 = max(rectPos.x, itemPos.x);
- float x1 = min(rectPos.x + rectSize.x, itemPos.x + itemSize.x);
- float y0 = max(rectPos.y, itemPos.y);
- float y1 = min(rectPos.y + rectSize.y, itemPos.y + itemSize.y);
+ float2 pixelPos;
+ pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
+ pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
- float uMin = (x0 - rectPos.x) / rectSize.x;
- float uMax = (x1 - rectPos.x) / rectSize.x;
- float vMin = (y0 - rectPos.y) / rectSize.y;
- float vMax = (y1 - rectPos.y) / rectSize.y;
-
- vMin = 1.0f - vMin;
- vMax = 1.0f - vMax;
-
- if (In.vTexcoord.x >= min(uMin, uMax) && In.vTexcoord.x <= max(uMin, uMax) &&
- In.vTexcoord.y >= min(vMin, vMax) && In.vTexcoord.y <= max(vMin, vMax))
+ if (pixelPos.x >= itemPos.x &&
+ pixelPos.x <= itemPos.x + itemSize.x &&
+ pixelPos.y >= itemPos.y &&
+ pixelPos.y <= itemPos.y + itemSize.y)
{
Color.rgb = float3(0.f, 0.f, 1.f);
}
+
+ for (int i = 0; i < g_Count; ++i)
+ {
+ float2 trailTopLeft = g_Trail[i];
+ float2 trailCenter = trailTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x / 2.0f + 6.f;
+ float halfHeight = itemSize.y / 2.0f + 6.f;
+
+ if (pixelPos.x >= trailCenter.x - halfWidth &&
+ pixelPos.x <= trailCenter.x + halfWidth &&
+ pixelPos.y >= trailCenter.y - halfHeight &&
+ pixelPos.y <= trailCenter.y + halfHeight)
+ {
+ Color.rgb = float3(20.f, 100.f, 180.f) / 255.f;
+ break;
+ }
+ }
+ for (int j = 0; j < g_ChaseCount; ++j)
+ {
+ float2 ChaseTopLeft = g_ChaseTrail[j];
+ float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x * 0.7f;
+ float halfHeight = itemSize.y * 0.7f;
+
+ if (pixelPos.x >= ChaseCenter.x - halfWidth &&
+ pixelPos.x <= ChaseCenter.x + halfWidth &&
+ pixelPos.y >= ChaseCenter.y - halfHeight &&
+ pixelPos.y <= ChaseCenter.y + halfHeight)
+ {
+ Color.rgb = float3(110.f, 5.f, 5.f) / 255.f;
+ break;
+ }
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_SpellLearnBooster(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex;
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+
+ if (g_iBoosterOn == 0 && g_iBoosterOff == 0)
+ {
+ if (inside1)
+ {
+ float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal);
+ Color = lerp(Color, tex1, tex1.a);
+ }
+ }
+ else if (g_iBoosterOn != 0 && g_iBoosterOff == 0)
+ {
+
+ float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
+ Color = lerp(Color, tex3, tex3.a);
+ }
+ else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
+ {
+ float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
+
+ tex2.rgb *= float3(1.f, 0.f, 0.f);
+ Color = tex;
+
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
Color.a *= Alpha;
Out.vColor = Color;
return Out;
@@ -2416,6 +2497,16 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_SpellLearnColor();
}
+ pass SpellLearnBooster
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_SpellLearnBooster();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj b/Jusin154_Team3D/Client/Default/Client.vcxproj
index 2dde60291..42e196758 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj
@@ -161,17 +161,24 @@ call Update_Resources.bat
+
+
+
+
+
+
+
@@ -382,17 +389,24 @@ call Update_Resources.bat
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
index fee946cce..0b117a485 100644
--- a/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
+++ b/Jusin154_Team3D/Client/Default/Client.vcxproj.filters
@@ -680,9 +680,30 @@
04.Mechanic\State\State_Combat\State_Skill2
+
+ 02.GameObjects\NPC\Ally\GateKeeper
+
02.GameObjects\Effect\Effects\Transformation
+
+ 02.GameObjects\Effect\Effects\Transformation\TransformationSide
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
@@ -1425,6 +1446,27 @@
{87b1db75-938f-462f-a288-fe9c8d6c689e}
+
+ {cef7b9f7-3bb3-4782-a1a8-09751fa538d8}
+
+
+ {064b5e2f-dcde-47fd-a43d-43e25800393d}
+
+
+ {d9c0bcb6-64f6-4b58-a68d-ff04c91b9861}
+
+
+ {61024044-17a9-45ed-a6f9-73385290846d}
+
+
+ {b512f128-fcec-4db4-8cd2-08abfc56e000}
+
+
+ {2af08f38-aff0-4632-acb8-492111ff88f2}
+
+
+ {dd7d2910-1d3d-42c4-9390-ac60685357ee}
+
@@ -2055,6 +2097,27 @@
02.GameObjects\Effect\Effects\Transformation
+
+ 02.GameObjects\Effect\Effects\Transformation\TransformationSide
+
+
+ 02.GameObjects\NPC\Ally\GateKeeper
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 02.GameObjects\UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
diff --git a/Jusin154_Team3D/Client/Private/Blink.cpp b/Jusin154_Team3D/Client/Private/Blink.cpp
index 6bde575b7..f8bdcea5e 100644
--- a/Jusin154_Team3D/Client/Private/Blink.cpp
+++ b/Jusin154_Team3D/Client/Private/Blink.cpp
@@ -197,7 +197,8 @@ HRESULT CBlink::Pre_Setting(CGameObject* pObject, void* pArg)
m_pBlink_Swirl->Get_Component()->Set_State(STATE::POSITION, m_pOwner->Get_WorldPostion());
-
+ m_pBlink_Circle->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
+ m_pBlink_Circle2->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix());
m_pBlink_Distortion->Set_Visible(true);
diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
index f8ab21416..7fdcd0a4a 100644
--- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
+++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp
@@ -305,8 +305,6 @@ _float CBroomRacerAI::ComputeTurnToRing()
return clamp(turn, -1.f, 1.f);
}
-
-
_float CBroomRacerAI::ComputeHeightAdjust()
{
_float dy = (XMVectorGetY(m_pRaceRing->Get_WorldPostion()) + 15.f)
diff --git a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
index 810105416..9bdac8bb4 100644
--- a/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
+++ b/Jusin154_Team3D/Client/Private/Camera_Debug.cpp
@@ -26,6 +26,7 @@ void CCamera_Debug::Priority_Update(_float fTimeDelta)
}
Transition(fTimeDelta);
_float3 vCamPos = {};
+ _float3 vSetPos = {};
XMStoreFloat3(&vCamPos, m_pTransformCom->Get_State(STATE::POSITION));
#ifdef _DEBUG
GUI::Text("Cam Coord %.2f, %.2f, %.2f", vCamPos.x, vCamPos.y, vCamPos.z);
@@ -197,6 +198,7 @@ void CCamera_Debug::Describe_Entity()
GUI::InputFloat3("Pos", (float*)&vPosition);
}
}
+
GUI::End();
}
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
index b9cbf4742..0e4bef5a7 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXPlayable.cpp
@@ -40,12 +40,12 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
else {
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
m_pCharacter_Controller->Move(fTimeDelta);
@@ -147,7 +147,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
diff --git a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
index bd71eb1c7..9aa7c5bb8 100644
--- a/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
+++ b/Jusin154_Team3D/Client/Private/Dummy_PhysXWall.cpp
@@ -151,9 +151,9 @@ CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner)
void CDummy_PhysXWall::Free()
{
- if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
- }
+ //if (nullptr != m_pRigidBody) {
+ // m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
+ //}
__super::Free();
diff --git a/Jusin154_Team3D/Client/Private/EffectPool.cpp b/Jusin154_Team3D/Client/Private/EffectPool.cpp
index 838e138e6..39e3b7ffd 100644
--- a/Jusin154_Team3D/Client/Private/EffectPool.cpp
+++ b/Jusin154_Team3D/Client/Private/EffectPool.cpp
@@ -39,6 +39,7 @@
#include "LightningSide.h"
#include "Blink.h"
#include "Transformation.h"
+#include "TransformationSide.h"
CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
: CGameObject(pDevice, pContext)
@@ -421,6 +422,15 @@ HRESULT CEffectPool::Ready_Effect()
return pEffect; }
))) return E_FAIL;
+
+ if (FAILED(Create_Effect(SKILL_TYPE::TRANSFORMATION_SIDE, 3, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* {
+
+ CTransformationSide* pEffect = nullptr;
+
+ pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr);
+
+ return pEffect; }
+ ))) return E_FAIL;
return S_OK;
diff --git a/Jusin154_Team3D/Client/Private/Goblin.cpp b/Jusin154_Team3D/Client/Private/Goblin.cpp
index 79cafe137..639449f70 100644
--- a/Jusin154_Team3D/Client/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin.cpp
@@ -83,6 +83,9 @@ void CGoblin::Priority_Update(_float fTimeDelta)
void CGoblin::Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
+
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
@@ -135,6 +138,9 @@ void CGoblin::Update(_float fTimeDelta)
void CGoblin::Late_Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
+
__super::Late_Update(fTimeDelta);
if (true == m_pCharacter_Controller->IsActive()) {
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
@@ -306,7 +312,7 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
if (pEffect_Container != nullptr)
{
_uint iSkillType = pEffect_Container->Get_SkillType();
- damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
+ //damagePair = Get_Damage(m_pInfoInstance->Get_Spell_Damage(iSkillType));
switch (iSkillType)
{
@@ -321,9 +327,11 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
+ m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
+ m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
@@ -341,14 +349,14 @@ void CGoblin::OnCollision(CGameObject* pOther, void* pDesc)
}
- m_DamageInfo.fDamage = damagePair.first;
- m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
- if (0 == damagePair.second) {
- m_pFSM->Change_State(FSMSTATE::DEAD);
- _int ID = m_pStat->Get_Stat().iObjectID;
- m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
- return;
- }
+ //m_DamageInfo.fDamage = damagePair.first;
+ //m_pInfoInstance->Event_CallBack(TEXT("Monster_Hit"), &m_DamageInfo);
+ //if (0 == damagePair.second) {
+ // m_pFSM->Change_State(FSMSTATE::DEAD);
+ // _int ID = m_pStat->Get_Stat().iObjectID;
+ // m_pInfoInstance->Event_CallBack(TEXT("MonsterDead"), &ID);
+ // return;
+ //}
m_pFSM->Change_State(FSMSTATE::HIT);
@@ -410,7 +418,7 @@ HRESULT CGoblin::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
index 935b8fe42..01d376bc7 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage.cpp
@@ -82,6 +82,9 @@ void CGoblin_Mage::Priority_Update(_float fTimeDelta)
void CGoblin_Mage::Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
+
m_pFSM->Update_State(fTimeDelta);
m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
@@ -124,6 +127,9 @@ void CGoblin_Mage::Update(_float fTimeDelta)
void CGoblin_Mage::Late_Update(_float fTimeDelta)
{
+ if (m_bVisible == false)
+ return;
+
__super::Late_Update(fTimeDelta);
if (true == m_pCharacter_Controller->IsActive()) {
m_pTransformCom->Set_State(STATE::POSITION, m_pCharacter_Controller->Get_FootPosition());
@@ -314,9 +320,11 @@ void CGoblin_Mage::OnCollision(CGameObject* pOther, void* pDesc)
break;
case ENUM_CLASS(SKILL_TYPE::LEVIOSO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::LEVIOSO);
+ m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::ACCIO):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::ACCIO);
+ m_eHitState = ENUM_CLASS(HIT_STATE::AIR_LEVIOSO);
break;
case ENUM_CLASS(SKILL_TYPE::STUPEFY):
m_eHitSpell = ENUM_CLASS(SKILL_TYPE::STUPEFY);
@@ -403,7 +411,7 @@ HRESULT CGoblin_Mage::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN_WIZARD"), (CComponent**)&m_pStat))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
index 0679e3db9..bc86f2c9d 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_Mage_States.cpp
@@ -371,17 +371,56 @@ void CGoblin_Mage::Behavior_BlinkExit()
void CGoblin_Mage::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
+ _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
m_pFSM->Enable_State(FSMSTATE::HIT);
m_bLookAt = false;
+ _float fAnimSpeed = 1.f;
switch (m_eHitSpell)
{
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
+ fAnimSpeed = 2.f;
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
+ m_pCharacter_Controller->SetGravity(false);
+ m_bAir = true;
+ },
+ 0.3f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() {
+ CameraShake(10.f, 1.f, 2.f, 0.3f);
+ },
+ 0.27f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
+ 0.75f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_bAir = false;
+ m_pCharacter_Controller->SetGravity(true);
+ },
+ 0.96f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
+ 0.95f);
+
+ Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
+ [&]() {m_bLookAt = true; },
+ 0.7f);
+
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
- pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R];
+ pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
break;
case ENUM_CLASS(SKILL_TYPE::JAP):
{
@@ -415,7 +454,7 @@ void CGoblin_Mage::Behavior_HitEnter()
pairAnimInfo = m_Animation[STATEANIM::HIT_R];
}
}
- else{
+ else {
pairAnimInfo = m_Animation[STATEANIM::HIT_FWD];
}
}
@@ -427,46 +466,11 @@ void CGoblin_Mage::Behavior_HitEnter()
pairAnimInfo = m_Animation[STATEANIM::INCARCEROUS];
break;
default:
- pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
+ pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_R];
break;
}
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
- m_pCharacter_Controller->SetGravity(false);
- m_bAir = true;
- },
- 0.3f);
-
- Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
- [&]() {
- CameraShake(10.f, 1.f, 2.f, 0.3f);
- },
- 0.27f);
-
- Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
- [this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
- 0.75f);
-
- Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- m_bAir = false;
- m_pCharacter_Controller->SetGravity(true);
- },
- 0.95f);
-
- Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
- 0.95f);
-
- Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
- [&]() {m_bLookAt = true; },
- 0.7f);
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed);
}
HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
@@ -493,20 +497,47 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos + Force);
}
- if (!m_bAir && m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
+ if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
{
- m_fGravityAmount += fTimeDelta * fRatio * 15.f;
+ m_fGravityAmount += fTimeDelta * fRatio * 20.f;
m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount);
}
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first)
{
-
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
0.17f);
}
+ if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
+ {
+ if (!m_bPos)
+ {
+ m_pCharacter_Controller->SetGravity(false);
+ _vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
+ vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
+ _vector vMonsterPos = m_pCharacter_Controller->Get_Position();
+
+ _vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
+ _float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
+
+ if (fLength >= 4.f)
+ {
+ m_pCharacter_Controller->Set_Position(
+ vMonsterPos + vDir * m_fSpeed * fTimeDelta
+ );
+ }
+ else {
+ m_bPos = true;
+ pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
+ }
+ }
+ }
+
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
{
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
@@ -523,51 +554,39 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos);
}
m_pCharacter_Controller->SetGravity(false);
-
- if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
- {
- m_fAirTime = 0.f;
- m_pCharacter_Controller->SetGravity(true);
- pairAnimInfo = m_Animation[STATEANIM::LAND];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
- }
}
}
- if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
+ HitState_Behavior(fTimeDelta);
+
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first)
{
- if (!m_bPos)
+ m_fTumbleTimer += fTimeDelta;
+
+ if (m_fTumbleTimer >= 1.5f)
{
- m_pCharacter_Controller->SetGravity(false);
- _vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
- vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
- _vector vMonsterPos = m_pCharacter_Controller->Get_Position();
-
- _vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
- _float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
-
- m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
-
- if (fLength >= 2.5f)
- {
- m_pCharacter_Controller->Set_Position(
- vMonsterPos + vDir * m_fSpeed * fTimeDelta
- );
- }
- else {
- m_bPos = true;
- pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
- }
- }
-
- if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
- {
- m_fAirTime = 0.f;
+ m_fTumbleTimer = 0.f;
+ pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pCharacter_Controller->SetGravity(true);
- pairAnimInfo = m_Animation[STATEANIM::LAND];
+
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
+ 0.21f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
+ m_fAirTime = 0.f; },
+ 0.95f);
}
+ return S_OK;
+ }
+ if (m_vStunTimer.y < m_vStunTimer.x) {
+ pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
if (m_pModelCom->IsFinishedAnim())
@@ -578,12 +597,12 @@ HRESULT CGoblin_Mage::Behavior_HitExitCheck(_float fTimeDelta)
return S_OK;
}
-
void CGoblin_Mage::Behavior_HitExit()
{
m_pFSM->Disable_State(FSMSTATE::HIT);
m_bPos = false;
m_bLookAt = true;
+ m_eHitState = ENUM_CLASS(HIT_STATE::END);
m_pCharacter_Controller->Reset_GravityAmount();
m_fGravityAmount = 0.f;
}
@@ -648,6 +667,108 @@ void CGoblin_Mage::Behavior_DeadExit()
m_bDead = true;
}
+void CGoblin_Mage::HitState_Behavior(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ CTransform* pTransform = m_pTarget->Get_Component();
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ if (m_eHitState == ENUM_CLASS(HIT_STATE::AIR_LEVIOSO))
+ {
+ switch (m_eHitSpell)
+ {
+ case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ {
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
+ m_pCharacter_Controller->SetGravity(true);
+ m_pCharacter_Controller->Set_GravityAmount(1.5f);
+ m_fAirTime = 0.f;
+ pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
+ m_pCharacter_Controller->SetGravity(false);
+ m_bAir = true;
+ },
+ 0.3f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() {
+ CameraShake(10.f, 1.f, 2.f, 0.3f);
+ },
+ 0.27f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
+ 0.75f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_bAir = false;
+ m_pCharacter_Controller->SetGravity(true);
+ },
+ 0.96f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
+ 0.95f);
+
+ Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
+ [&]() {m_bLookAt = true; },
+ 0.7f);
+ }
+ break;
+ case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ {
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
+ m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
+ _vector vCameraLook = m_pGameInstance->Get_CameraLook();
+ vCameraLook = XMVector3Normalize(vCameraLook);
+ m_pRigidBody->Add_Force(vCameraLook * 30.f, physx::PxForceMode::eIMPULSE);
+ m_fAirTime = 0.f;
+ }
+ break;
+ case ENUM_CLASS(SKILL_TYPE::JAP):
+ {
+ m_fHitTimer += fTimeDelta;
+ if (m_fHitTimer <= 0.25f)
+ {
+ _vector vPlayerLook = pTransform->Get_State(STATE::LOOK);
+ vPlayerLook = XMVector4Normalize(vPlayerLook);
+ _vector vPos = m_pCharacter_Controller->Get_Position();
+
+ _float t = clamp(m_fHitTimer, 0.f, 1.f);
+ _float ease = 1.f - (t * t);
+ _vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
+
+ m_pCharacter_Controller->Set_Position(vPos + Force);
+ pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f);
+ }
+ else {
+ m_fHitTimer = 0.f;
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
+ }
+ }
+ break;
+ }
+ if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
+ {
+ m_fAirTime = 0.f;
+ m_pCharacter_Controller->SetGravity(true);
+ pairAnimInfo = m_Animation[STATEANIM::LAND];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
+ }
+ }
+
+}
+
+
void CGoblin_Mage::Add_FSM()
{
#pragma region Behavior_Movement_NotFocus
diff --git a/Jusin154_Team3D/Client/Private/Goblin_States.cpp b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
index cf6714bbd..8cae5facc 100644
--- a/Jusin154_Team3D/Client/Private/Goblin_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Goblin_States.cpp
@@ -453,6 +453,7 @@ void CGoblin::Behavior_ShuffleExit()
void CGoblin::Behavior_HitEnter()
{
pair<_uint, _bool> pairAnimInfo = {};
+ _int iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
m_pFSM->Enable_State(FSMSTATE::HIT);
m_bLookAt = false;
@@ -463,6 +464,40 @@ void CGoblin::Behavior_HitEnter()
case ENUM_CLASS(SKILL_TYPE::DESCENDO):
pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
fAnimSpeed = 2.f;
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
+ m_pCharacter_Controller->SetGravity(false);
+ m_bAir = true;
+ },
+ 0.3f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() {
+ CameraShake(10.f, 1.f, 2.f, 0.3f);
+ },
+ 0.27f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
+ 0.75f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_bAir = false;
+ m_pCharacter_Controller->SetGravity(true);
+ },
+ 0.96f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
+ 0.95f);
+
+ Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
+ [&]() {m_bLookAt = true; },
+ 0.7f);
break;
case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
pairAnimInfo = m_Animation[STATEANIM::STUMBLE_BWD_L];
@@ -517,40 +552,6 @@ void CGoblin::Behavior_HitEnter()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, fAnimSpeed);
- Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
- m_pCharacter_Controller->SetGravity(false);
- m_bAir = true;
- },
- 0.3f);
-
- Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
- [&]() {
- CameraShake(10.f, 1.f, 2.f, 0.3f);
- },
- 0.27f);
-
- Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
- [this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
- 0.75f);
-
- Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- m_bAir = false;
- m_pCharacter_Controller->SetGravity(true);
- },
- 0.95f);
-
- Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
- [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
- 0.95f);
-
- Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
- [&]() {m_bLookAt = true; },
- 0.7f);
}
HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
@@ -577,20 +578,47 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos + Force);
}
- if (!m_bAir && m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
+ if (!m_bAir && iCurrAnimIndex == m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first)
{
- m_fGravityAmount += fTimeDelta * fRatio* 15.f;
+ m_fGravityAmount += fTimeDelta * fRatio* 20.f;
m_pCharacter_Controller->Set_GravityAmount(m_fGravityAmount);
}
if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE_FWD].first)
{
-
Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
[&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
0.17f);
}
+ if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
+ {
+ if (!m_bPos)
+ {
+ m_pCharacter_Controller->SetGravity(false);
+ _vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
+ vPlayerPos = XMVectorSetY(vPlayerPos, XMVectorGetY(vPlayerPos) + 2.5f);
+ _vector vMonsterPos = m_pCharacter_Controller->Get_Position();
+
+ _vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
+ _float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
+
+ m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
+
+ if (fLength >= 4.f)
+ {
+ m_pCharacter_Controller->Set_Position(
+ vMonsterPos + vDir * m_fSpeed * fTimeDelta
+ );
+ }
+ else {
+ m_bPos = true;
+ pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
+ }
+ }
+ }
+
if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::LEVIOSO))
{
if (iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
@@ -607,51 +635,39 @@ HRESULT CGoblin::Behavior_HitExitCheck(_float fTimeDelta)
m_pCharacter_Controller->Set_Position(vPos);
}
m_pCharacter_Controller->SetGravity(false);
-
- if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
- {
- m_fAirTime = 0.f;
- m_pCharacter_Controller->SetGravity(true);
- pairAnimInfo = m_Animation[STATEANIM::LAND];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
- }
}
}
- if (m_eHitSpell == ENUM_CLASS(SKILL_TYPE::ACCIO))
+ HitState_Behavior(fTimeDelta);
+
+
+ if (iCurrAnimIndex == m_Animation[STATEANIM::TUMBLE].first)
{
- if (!m_bPos)
+ m_fTumbleTimer += fTimeDelta;
+
+ if (m_fTumbleTimer >= 1.5f)
{
- m_pCharacter_Controller->SetGravity(false);
- _vector vPlayerPos = pTransform->Get_State(STATE::POSITION);
- vPlayerPos = XMVectorSetY(vPlayerPos,XMVectorGetY(vPlayerPos) + 2.5f);
- _vector vMonsterPos = m_pCharacter_Controller->Get_Position();
-
- _vector vDir = XMVector3Normalize(vPlayerPos - vMonsterPos);
- _float fLength = XMVectorGetX(XMVector3Length(vPlayerPos - vMonsterPos));
-
- m_fSpeed += (m_fTargetSpeed - m_fSpeed) * fTimeDelta * m_fAccel;
-
- if (fLength >= 2.5f)
- {
- m_pCharacter_Controller->Set_Position(
- vMonsterPos + vDir * m_fSpeed * fTimeDelta
- );
- }
- else {
- m_bPos = true;
- pairAnimInfo = m_Animation[STATEANIM::HIT_LEVIOSO];
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
- }
- }
-
- if (m_pModelCom->Get_CurrentTrackProgressRatio() >= 0.31f)
- {
- m_fAirTime = 0.f;
+ m_fTumbleTimer = 0.f;
+ pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pCharacter_Controller->SetGravity(true);
- pairAnimInfo = m_Animation[STATEANIM::LAND];
+
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() {CameraShake(3.f, 0.8f, 1.f, 0.2f); },
+ 0.21f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
+ m_fAirTime = 0.f; },
+ 0.95f);
}
+ return S_OK;
+ }
+ if (m_vStunTimer.y < m_vStunTimer.x) {
+ pairAnimInfo = m_Animation[STATEANIM::GETUP_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
}
if (m_pModelCom->IsFinishedAnim())
@@ -667,6 +683,7 @@ void CGoblin::Behavior_HitExit()
m_pFSM->Disable_State(FSMSTATE::HIT);
m_bPos = false;
m_bLookAt = true;
+ m_eHitState = ENUM_CLASS(HIT_STATE::END);
m_pCharacter_Controller->Reset_GravityAmount();
m_fGravityAmount = 0.f;
}
@@ -728,6 +745,107 @@ void CGoblin::Behavior_DeadExit()
m_bDead = true;
}
+void CGoblin::HitState_Behavior(_float fTimeDelta)
+{
+ pair<_uint, _bool> pairAnimInfo = {};
+ CTransform* pTransform = m_pTarget->Get_Component();
+ _uint iCurrAnimIndex = m_pModelCom->Get_AnimIndex();
+ _float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
+
+ if (m_eHitState == ENUM_CLASS(HIT_STATE::AIR_LEVIOSO))
+ {
+ switch (m_eHitSpell)
+ {
+ case ENUM_CLASS(SKILL_TYPE::DESCENDO):
+ {
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
+ m_pCharacter_Controller->SetGravity(true);
+ m_pCharacter_Controller->Set_GravityAmount(1.5f);
+ m_fAirTime = 0.f;
+ pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 2.f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::TUMBLE_FWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.5f);
+ m_pCharacter_Controller->SetGravity(false);
+ m_bAir = true;
+ },
+ 0.3f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() {
+ CameraShake(10.f, 1.f, 2.f, 0.3f);
+ },
+ 0.27f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [this]() {m_pModelCom->Set_AnimSpeed(1.5f); },
+ 0.75f);
+
+ Add_Event(m_Animation[STATEANIM::TUMBLE_FWD].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ m_bAir = false;
+ m_pCharacter_Controller->SetGravity(true);
+ },
+ 0.96f);
+
+ Add_Event(m_Animation[STATEANIM::KNOCKDOWN_BWD_SPLT].first,
+ [&]() { pairAnimInfo = m_Animation[STATEANIM::GETUP_BWD];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f); },
+ 0.95f);
+
+ Add_Event(m_Animation[STATEANIM::GETUP_BWD].first,
+ [&]() {m_bLookAt = true; },
+ 0.7f);
+ }
+ break;
+ case ENUM_CLASS(SKILL_TYPE::BOMBARDA):
+ {
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
+ m_pCharacter_Controller->ConvertToDO(*m_pRigidBody);
+ _vector vCameraLook = m_pGameInstance->Get_CameraLook();
+ vCameraLook = XMVector3Normalize(vCameraLook);
+ m_pRigidBody->Add_Force(vCameraLook*30.f, physx::PxForceMode::eIMPULSE);
+ m_fAirTime = 0.f;
+ }
+ break;
+ case ENUM_CLASS(SKILL_TYPE::JAP):
+ {
+ m_fHitTimer += fTimeDelta;
+ if (m_fHitTimer <= 0.4f)
+ {
+ _vector vPlayerLook = pTransform->Get_State(STATE::LOOK);
+ vPlayerLook = XMVector4Normalize(vPlayerLook);
+ _vector vPos = m_pCharacter_Controller->Get_Position();
+
+ _float t = clamp(m_fHitTimer, 0.f, 1.f);
+ _float ease = 1.f - (t * t);
+ _vector Force = vPlayerLook * fTimeDelta * 6.f * ease;
+
+ m_pCharacter_Controller->Set_Position(vPos + Force);
+ pairAnimInfo = m_Animation[STATEANIM::TUMBLE];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, false, 0.8f);
+ }
+ else {
+ m_fHitTimer = 0.f;
+ m_eHitSpell = ENUM_CLASS(SKILL_TYPE::END);
+ }
+ }
+ break;
+ }
+ if (fRatio >= 0.31f && iCurrAnimIndex == m_Animation[STATEANIM::HIT_LEVIOSO].first)
+ {
+ m_fAirTime = 0.f;
+ m_pCharacter_Controller->SetGravity(true);
+ pairAnimInfo = m_Animation[STATEANIM::LAND];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f);
+ }
+ }
+
+}
+
void CGoblin::Add_FSM()
{
diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
index 4ade71163..5c3aed936 100644
--- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
+++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp
@@ -266,8 +266,8 @@ HRESULT CLevel_GamePlay::Ready_Background()
#endif //
#ifdef 기무리
isReady_Background = true;
- isReady_Hogsmeade = false;
- isReady_Hogwart = false;
+ isReady_Hogsmeade = true;
+ isReady_Hogwart = true;
#endif //
#ifdef 인혁
isReady_Background = false;
@@ -578,11 +578,11 @@ HRESULT CLevel_GamePlay::Ready_Layer_Player(const _wstring& strLayerTag)
}
- /*for (_uint i = 0; i < 1; ++i) {
- if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
- return E_FAIL;
+ for (_uint i = 0; i < 1; ++i) {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, strLayerTag))) {
+ return E_FAIL;
+ }
}
- }*/
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp
index f52798507..bf7b52469 100644
--- a/Jusin154_Team3D/Client/Private/Loader.cpp
+++ b/Jusin154_Team3D/Client/Private/Loader.cpp
@@ -118,6 +118,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "SpellLearn_LookPointer.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
#include "Interaction_Key.h"
@@ -143,6 +148,7 @@
#include "DecendoSide.h"
#include "BombardSide.h"
#include "LeviosoSide.h"
+#include "TransformationSide.h"
#include "TrailObject.h"
#include "Instance_Model.h"
@@ -351,7 +357,7 @@ HRESULT CLoader::Loading_For_GamePlay()
#endif //
#ifdef 기무리
isLoad_Background = true;
- isLoad_Hogwart = false;
+ isLoad_Hogwart = true;
#endif //
#ifdef 인혁
isLoad_Background = false;
@@ -1874,7 +1880,7 @@ HRESULT CLoader::Loading_For_GamePlay()
}
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Prototype_Component_Ranrok_Model"),
- CModel::Create(m_pDevice, m_pContext, MODEL::ANIM, "../Bin/Resources/Models/Monster/Dragon/Dragon.bin", XMMatrixScaling(0.0001f, 0.0001f, 0.0001f) * XMMatrixRotationY(XMConvertToRadians(180.f)) * XMMatrixIdentity())))) {
+ 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;
}
@@ -1982,6 +1988,10 @@ HRESULT CLoader::Loading_For_GamePlay()
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTransformationSide::Create(m_pDevice, m_pContext)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CTrollSwing::Create(m_pDevice, m_pContext)))) {
return E_FAIL;
}
@@ -2118,6 +2128,16 @@ HRESULT CLoader::Loading_For_GamePlay()
return S_OK;
});
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Spline", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(NEXT_LEVEL, wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
m_strMessage = TEXT("객체원형를(을) 로딩 중 입니다.");
#pragma region UI
@@ -2399,6 +2419,31 @@ HRESULT CLoader::Loading_For_GamePlay()
{
return E_FAIL;
}
+ /* For.Prototype_GameObject_SpellLearn_ChaserPointer*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_ChaserPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_LookPointer*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_LookPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_Booster*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Booster::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_Slot*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ /* For.Prototype_GameObject_SpellLearn_SpellLearn_Overlay*/
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Overlay::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
/* For.Prototype_GameObject_Interaction_Key*/
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CInteraction_Key::Create(m_pDevice, m_pContext))))
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
index 96003639a..6cd26482f 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Chest.cpp
@@ -316,7 +316,7 @@ CGameObject* CMapElement_Chest::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Chest::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
index 3252956d8..d38f2a2d6 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Door.cpp
@@ -299,7 +299,7 @@ CGameObject* CMapElement_Door::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Door::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
index 8a4b63b17..2755d98d4 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Interactable.cpp
@@ -483,7 +483,7 @@ CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Interactable::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
index c58058de0..56f903606 100644
--- a/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
+++ b/Jusin154_Team3D/Client/Private/MapElement_Static.cpp
@@ -149,12 +149,12 @@ void CMapElement_Static::ReadyForPhysX()
return;
}
m_bConverted = true;
-
+ _uint iLevel = NEXT_LEVEL;
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
{
CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix()))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(m_pTransformCom->Get_XMWorldMatrix(), iLevel))) {
assert(false);
}
}
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
index 08ea6e825..edbfb3a47 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Collision.cpp
@@ -88,7 +88,7 @@ void CMapObject_Collision::ReadyForPhysX()
return;
}
m_bConverted = true;
-
+ _uint iLevel = NEXT_LEVEL;
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
{
CModel* pModel = m_pModelComs[iIndexLOD];
@@ -98,7 +98,7 @@ void CMapObject_Collision::ReadyForPhysX()
_bool bSkip = { false };
for (_int i = 0; i < 4; ++i) {
if (false == XMVector4NearEqual(idenMatrix.r[i], parentMatrix.r[i], XMVectorReplicate(FLT_EPSILON5))) {
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
bSkip = true;
@@ -106,7 +106,7 @@ void CMapObject_Collision::ReadyForPhysX()
}
}
if (false == bSkip) {
- if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix()))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(m_pParentTransformCom->Get_XMWorldMatrix(), iLevel))) {
assert(false);
}
}
@@ -226,6 +226,7 @@ void CMapObject_Collision::Free()
for (_uint j = 0; j < m_RigidBodies[i].size(); ++j) {
SAFE_RELEASE(m_RigidBodies[i][j]);
}
+ m_RigidBodies[i].clear();
} m_RigidBodies.clear();
m_ModelPrototypeTags.clear();
diff --git a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
index c3ca5b58c..db9b61a4f 100644
--- a/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
+++ b/Jusin154_Team3D/Client/Private/MapObject_Render.cpp
@@ -156,11 +156,12 @@ void CMapObject_Render::ReadyForPhysX()
}
m_bConverted = true;
+ _uint iLevel = NEXT_LEVEL;
for (_uint iIndexLOD = 0; iIndexLOD < m_iMaxLodLevel + 1; ++iIndexLOD)
{
CModel* pModel = m_pModelComs[iIndexLOD];
- if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix)))) {
+ if (FAILED(pModel->Ready_PhysXMeshes(XMLoadFloat4x4(&m_CombinedWorldMatrix), iLevel))) {
assert(false);
}
}
diff --git a/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
new file mode 100644
index 000000000..690100725
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/NPC_EleazarFig.cpp
@@ -0,0 +1,238 @@
+#include "pch.h"
+#include "NPC_EleazarFig.h"
+
+#include "GameInstance.h"
+#include "InfoInstance.h"
+#include "Player.h"
+
+CNPC_EleazarFig::CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CUnit(pDevice, pContext)
+{
+}
+
+CNPC_EleazarFig::CNPC_EleazarFig(const CNPC_EleazarFig& Prototype)
+ : CUnit(Prototype),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+void CNPC_EleazarFig::Priority_Update(_float fTimeDelta)
+{
+ m_pTransformCom->RewindMomentum();
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CNPC_EleazarFig::Update(_float fTimeDelta)
+{
+ m_pFSM->Update_State(fTimeDelta);
+ if (m_pModelCom->IsFinishedAnim()) {
+ m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
+ }
+ m_pModelCom->Play_Animation(fTimeDelta, m_pTransformCom);
+ __super::Update(fTimeDelta);
+#ifdef _DEBUG
+ Describe_Entity();
+#endif // _DEBUG
+
+}
+
+void CNPC_EleazarFig::Late_Update(_float fTimeDelta)
+{
+ m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
+
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CNPC_EleazarFig::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices(
+ "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ )))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Render_Shadow(SHADOW eType)
+{
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_WorldMatrix", m_pTransformCom->Get_WorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ViewMatrix", D3DTS::VIEW, eType))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_Shadow_Resource(m_pShaderCom, "g_ProjMatrix", D3DTS::PROJ, eType))) {
+ return E_FAIL;
+ }
+ _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
+
+ for (_uint i = 0; i < iNumMeshes; i++)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices(
+ "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size()
+ )))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix"))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg))) {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+ m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(40.f, 4.f, 68.9f, 1.f));
+ m_pModelCom->Set_AnimationIndex(m_pGameInstance->Random_Int(0, 19), false);
+ return S_OK;
+}
+
+HRESULT CNPC_EleazarFig::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ /* Com_Shader */
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Component_GerboldOlivander_Model"),
+ reinterpret_cast(&m_pModelCom)))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CNPC_EleazarFig* CNPC_EleazarFig::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CNPC_EleazarFig");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+CGameObject* CNPC_EleazarFig::Clone(void* pArg, CGameObject* pOwner)
+{
+ CNPC_EleazarFig* pInstance = new CNPC_EleazarFig(*this);
+
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CNPC_EleazarFig");
+ SAFE_RELEASE(pInstance);
+ }
+ return pInstance;
+}
+
+void CNPC_EleazarFig::Free()
+{
+ __super::Free();
+}
+#ifdef _DEBUG
+
+void CNPC_EleazarFig::Describe_Entity()
+{
+ GUI::Begin("UNIT", 0, IMGUI_GLOBAL_BEGIN_FLAG);
+ if (GUI::CollapsingHeader("Ollivander")) {
+ m_pModelCom->Describe_Entity();
+ if (ImGui::TreeNode("ANIM STATE")) {
+
+ for (auto& pState : m_States)
+ {
+ if (ImGui::Button(to_string(pState.first).c_str()))
+ {
+ m_pFSM->Change_State(pState.first);
+ }
+ }
+
+ GUI::Text(to_string(m_pModelCom->Get_CurrentTrackProgressRatio()).c_str());
+
+ ImGui::TreePop();
+ }
+ }
+ GUI::End();
+}
+
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
index f250372c5..34d760c7c 100644
--- a/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
+++ b/Jusin154_Team3D/Client/Private/NPC_Ollivander.cpp
@@ -40,8 +40,7 @@ void CNPC_Ollivander::Late_Update(_float fTimeDelta)
{
m_pTransformCom->Set_State(STATE::POSITION, m_pTransformCom->Get_EstimatedPositionByMomentum());
- //m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
- //m_pGameInstance->Add_RenderGroup(RENDER::SHADOW, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
__super::Late_Update(fTimeDelta);
}
@@ -110,6 +109,7 @@ HRESULT CNPC_Ollivander::Render_Shadow(SHADOW eType)
}
m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
index 4c61ffb1d..8d371593b 100644
--- a/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Client/Private/PhysXEffectHitBox.cpp
@@ -194,7 +194,7 @@ void CPhysXEffectHitBox::Free()
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp
index 08b405243..511f2fd97 100644
--- a/Jusin154_Team3D/Client/Private/Player.cpp
+++ b/Jusin154_Team3D/Client/Private/Player.cpp
@@ -483,7 +483,7 @@ HRESULT CPlayer::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
return S_OK;
@@ -563,6 +563,11 @@ void CPlayer::ReLockOnTarget()
m_LockOnInfo.pUnit = nullptr;
}
}
+ if (nullptr != m_LockOnInfo.pInteractive) {
+ if (true == m_LockOnInfo.pInteractive->isDead()) {
+ m_LockOnInfo.pInteractive = nullptr;
+ }
+ }
//m_pLockOnMonster->Get_State
}
diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp
index f37e7016c..bbf24dece 100644
--- a/Jusin154_Team3D/Client/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Player_States.cpp
@@ -64,7 +64,7 @@ HRESULT CPlayer::InputAction()
|| m_pGameInstance->Key_Down(DIK_E)
|| m_pGameInstance->Key_Down(DIK_R)
|| m_pGameInstance->Key_Down(DIK_Q)
- || m_pGameInstance->Mouse_Up(DIM_LBUTTON)
+ || m_pGameInstance->Mouse_Down(DIM_LBUTTON)
|| m_pGameInstance->Key_Down(DIK_LSHIFT)
|| m_pGameInstance->Key_Down(DIK_C)
|| m_pGameInstance->Key_Down(DIK_V)
@@ -187,18 +187,21 @@ void CPlayer::Behavior_IdleEnter() {
{
if (m_pGameInstance->Mouse_Pressing(DIM_LBUTTON)) {
pairAnimInfo = m_Animation[STATEANIM::IDLE_AIM];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
else
pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true,1.f,false);
}
else
{
pairAnimInfo = m_Animation[STATEANIM::IDLE];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true, 1.f, false);
}
m_bSprintToggle = false;
m_bWalkToggle = false;
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 0.5f, true);
+
}
HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
@@ -223,7 +226,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
else if (SUCCEEDED(InputSpell())) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
- else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
+ else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (m_pGameInstance->Key_Down(DIK_V)) {
@@ -331,7 +334,6 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
}
}
-
return S_OK;
}
@@ -443,7 +445,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
else if (m_pGameInstance->Key_Down(DIK_Q)) {
m_pFSM->Change_State(FSMSTATE::SHIELD);
}
- else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
+ else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (SUCCEEDED(InputSpell())) {
@@ -1020,7 +1022,7 @@ void CPlayer::Behavior_CombatEnter()
m_pFSM->Change_State(FSMSTATE::SHIELD);
return;
}
- else if (m_pGameInstance->Mouse_Up(DIM_LBUTTON)) {
+ else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
m_pFSM->Change_State(FSMSTATE::LIGHT_ATTACK);
return;
}
@@ -1049,6 +1051,9 @@ void CPlayer::Behavior_CombatEnter()
m_pGrapInteractive->Set_KinematicFlag(true);
m_vGrapInteratableLerp.x = 0.f;
}
+ else {
+ return;
+ }
Add_Event(pairAnimInfo.first,
[this]() { m_bLookAt = true; },
@@ -1232,7 +1237,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
{
pair<_uint, _bool> pairAnimInfo;
_float fRatio = m_pModelCom->Get_CurrentTrackProgressRatio();
- if (m_pGameInstance->Mouse_Up(DIM_LBUTTON))
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
{
_uint iCurr = m_pModelCom->Get_AnimIndex();
_uint iStart = m_Animation[STATEANIM::LIGHT_ATTACK].first;
@@ -1261,7 +1266,7 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
},
0.01f);
- if (fRatio >= 0.1f)
+ if (fRatio >= 0.08f)
{
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
@@ -1292,9 +1297,17 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
return E_FAIL;
}
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
+ {
+ if (fRatio >= 0.3f)
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+ }
+
if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
m_pFSM->Change_State(FSMSTATE::MOVE);
- m_bLookAt = false;
return E_FAIL;
}
@@ -1303,11 +1316,10 @@ HRESULT CPlayer::Behavior_LightAttackExitCheck(_float fTimeDelta)
if (SUCCEEDED(InputMove()))
{
m_pFSM->Change_State(FSMSTATE::MOVE);
- m_bLookAt = false;
return E_FAIL;
}
-
m_pFSM->Change_State(FSMSTATE::IDLE);
+ return E_FAIL;
}
return S_OK;
@@ -1318,6 +1330,7 @@ void CPlayer::Behavior_LightAttackExit()
{
m_pFSM->Disable_State(FSMSTATE::LIGHT_ATTACK);
m_pModelCom->Set_BlendDuration(0.3f);
+ m_bLookAt = false;
}
void CPlayer::Behavior_SpellEnter()
@@ -1343,25 +1356,17 @@ void CPlayer::Behavior_SpellEnter()
_vector vCross = XMVector3Cross(vLook, vCameraLook);
_float Cross = XMVectorGetY(vCross);
- if (Degree <= 30.f)
+ if (Degree <= 45.f)
{
pairAnimInfo = m_Animation[STATEANIM::SPELL];
fRatio = 0.2f;
}
- else if (Degree <= 80.f)
- {
- pairAnimInfo = m_Animation[STATEANIM::SPELL];
- Add_Event(pairAnimInfo.first,
- [this]() {m_bLookAt = true;
- },
- 0.01f);
- fRatio = 0.2f;
- }
else if (Degree <= 135.f)
{
if (Cross < 0.f)
{
pairAnimInfo = m_Animation[STATEANIM::SPELL_90_L];
+ fRatio = 0.17f;
}
else {
pairAnimInfo = m_Animation[STATEANIM::SPELL];
@@ -1369,12 +1374,13 @@ void CPlayer::Behavior_SpellEnter()
[this]() {m_bLookAt = true;
},
0.01f);
+ fRatio = 0.2f;
}
- fRatio = 0.15f;
+
}
else {
pairAnimInfo = m_Animation[STATEANIM::SPELL_180_R];
- fRatio = 0.18f;
+ fRatio = 0.23f;
}
}
else {
@@ -1415,7 +1421,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
if (iCurr >= iStart && iCurr < iStart + 3)
{
- if (fRatio >= 0.2f)
+ if (fRatio >= 0.15f)
{
_uint iNext = iCurr + 1;
pairAnimInfo = m_Animation[STATEANIM::SPELL];
@@ -1435,7 +1441,7 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
fAttackRatio = 0.17f;
}
else if (iNext - iStart == 3) {
- fAttackRatio = 0.14f;
+ fAttackRatio = 0.145f;
}
else {
fAttackRatio = 0.2f;
@@ -1481,14 +1487,24 @@ HRESULT CPlayer::Behavior_SpellExitCheck()
break;
}
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- m_eSpell = ENUM_CLASS(SKILL_TYPE::END);
}
}
- if (SUCCEEDED(InputMove()) && fRatio >= 0.3f) {
- m_pFSM->Change_State(FSMSTATE::MOVE);
- return E_FAIL;
+ if (SUCCEEDED(InputAction()) || SUCCEEDED(InputSpell()))
+ {
+ if (fRatio >= 0.3f)
+ {
+ m_pFSM->Change_State(FSMSTATE::COMBAT);
+ return E_FAIL;
+ }
+ }
+
+ if (SUCCEEDED(InputMove())) {
+ if (fRatio >= 0.3f) {
+ m_pFSM->Change_State(FSMSTATE::MOVE);
+ return E_FAIL;
+ }
}
if (m_pModelCom->IsFinishedAnim()) {
@@ -1598,61 +1614,67 @@ HRESULT CPlayer::Behavior_ShieldExitCheck()
if (m_LockOnInfo.pUnit)
{
_vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
- _vector vTargetLook = m_LockOnInfo.pUnit->Get_Component()->Get_State(STATE::LOOK);
+ _vector vCameraLook = XMVectorSet(m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z, 0.f);
vLook = XMVector3Normalize(vLook);
- vTargetLook = XMVector3Normalize(vTargetLook);
+ vCameraLook = XMVector3Normalize(vCameraLook);
- _float fDot = XMVectorGetX(XMVector3Dot(vLook, vTargetLook));
+ _float fDot = XMVectorGetX(XMVector3Dot(vLook, vCameraLook));
fDot = clamp(fDot, -1.0f, 1.0f);
_float fAngleRad = acosf(fDot);
_float Degree = XMConvertToDegrees(fAngleRad);
- _vector vCross = XMVector3Cross(vLook, vTargetLook);
+ _vector vCross = XMVector3Cross(vLook, vCameraLook);
_float Cross = XMVectorGetY(vCross);
- if (Degree <= 45.f)
+ if (Degree <= 60.f)
{
- pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
+ pairAnimInfo = m_Animation[STATEANIM::PARRY4];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_bLookAt = true;
+ },
+ 0.01f);
}
- else if (Degree <= 120.f)
+ else if (Degree <= 135.f)
{
- if (Cross > 0.f)
+ if (Cross < 0.f)
{
pairAnimInfo = m_Animation[STATEANIM::PARRY2];
-
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
- else
- {
+ else {
pairAnimInfo = m_Animation[STATEANIM::PARRY3];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_bLookAt = true;
+ },
+ 0.01f);
}
else {
- pairAnimInfo = m_Animation[STATEANIM::PARRY4];
+ pairAnimInfo = m_Animation[STATEANIM::PARRY_180];
+ m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
}
- Add_Event(pairAnimInfo.first,
- [this]() {m_bLookAt = true;
- },
- 0.01f);
+
+ }
Add_Event(pairAnimInfo.first,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA_SIDE, Get_PartObject()); },
0.01f);
+
+
+ Add_Event(pairAnimInfo.first,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
+ 0.2f);
+
+ Start_CameraShake(0.3f, 2.f);
+ m_pGameInstance->SlowMotion(0.8f, 0.3f);
+ m_bShield = false;
+ return S_OK;
+
}
-
- Start_CameraShake(0.3f, 2.f);
- m_pGameInstance->SlowMotion(0.8f, 0.3f);
- m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
-
- Add_Event(pairAnimInfo.first,
- [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::STUPEFY, this); },
- 0.2f);
-
- m_bShield = false;
- return S_OK;
-
}
- }
if (m_pModelCom->IsFinishedAnim()) {
if (SUCCEEDED(InputMove()))
@@ -2429,6 +2451,11 @@ void CPlayer::Add_SpellEvent(_uint AnimIndex,_float fRatio)
Add_Event(AnimIndex,
[this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION, this); },
fRatio);
+
+ Add_Event(AnimIndex,
+ [this]() {m_pEffectPool->Use_Skill(SKILL_TYPE::TRANSFORMATION_SIDE, Get_PartObject()); },
+ 0.f);
+
break;
case ENUM_CLASS(SKILL_TYPE::DIFFINDO):
pairAnimInfo = m_Animation[STATEANIM::DIFFINDO];
@@ -2939,19 +2966,19 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::SPELL_FAIL] = { 906,false };
- m_Animation[STATEANIM::PARRY_180] = { 947,false };
+ m_Animation[STATEANIM::PARRY_180] = { 953,false };// 946 953
m_Animation[STATEANIM::PARRY2] = { 913,false };
m_Animation[STATEANIM::PARRY3] = { 915,false };
- m_Animation[STATEANIM::PARRY4] = { 921,false };
+ m_Animation[STATEANIM::PARRY4] = { 921,false }; // 922
- m_Animation[STATEANIM::HIT_L] = { 1201,false };
- m_Animation[STATEANIM::HIT_R] = { 1202,false };
- m_Animation[STATEANIM::FLINCH_BWD] = { 1061,false };
- m_Animation[STATEANIM::FLINCH_FWD] = { 1062,false };
- m_Animation[STATEANIM::FLINCH_LEFT] = { 1063,false };
- m_Animation[STATEANIM::FLINCH_RIGHT] = { 1064,false };
- m_Animation[STATEANIM::KNOCKBACK] = { 1079,false };
+ m_Animation[STATEANIM::HIT_L] = { 1209,false };
+ m_Animation[STATEANIM::HIT_R] = { 1210,false };
+ m_Animation[STATEANIM::FLINCH_BWD] = { 1069,false };
+ m_Animation[STATEANIM::FLINCH_FWD] = { 1070,false };
+ m_Animation[STATEANIM::FLINCH_LEFT] = { 1071,false };
+ m_Animation[STATEANIM::FLINCH_RIGHT] = { 1072,false };
+ m_Animation[STATEANIM::KNOCKBACK] = { 1087,false };
m_Animation[STATEANIM::BROOM_IDLE] = { 710,true };
m_Animation[STATEANIM::BROOM_FWD] = { 711,true };
@@ -2983,6 +3010,12 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::JOG_AIM_STOP_R] = { 456,false };
m_Animation[STATEANIM::JOG_AIM_STOP_BWD] = { 444,false };
+ m_Animation[STATEANIM::SPELL_LEARNING_FAIL] = { 1285,false };
+ m_Animation[STATEANIM::SPELL_LEARNING_LOOP] = { 1286,true };
+ m_Animation[STATEANIM::SPELL_LEARNING_START] = { 1287,false };
+ m_Animation[STATEANIM::SPELL_LEARNING_SUCCESS] = { 1288,false };
+ m_Animation[STATEANIM::SPELL_LEARNING_WANDWAVE] = { 1289,false };
+
//루모스 스탑 912
//713 왼쪽 슬로우
@@ -3016,6 +3049,7 @@ void CPlayer::Set_Anim()
//568 566 564 슬라이드 스탑/스타트/루프
//874
+ //1277 1281
}
diff --git a/Jusin154_Team3D/Client/Private/Ranrok.cpp b/Jusin154_Team3D/Client/Private/Ranrok.cpp
index 9bfc8d065..99475837a 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok.cpp
@@ -141,6 +141,11 @@ void CRanrok::Update(_float fTimeDelta)
m_fSkillCoolTime[i] = max(0.f, m_fSkillCoolTime[i] - fTimeDelta);
#pragma endregion
+
+ m_vEtherealTimer.x += fTimeDelta * 0.2f;
+ if (m_vEtherealTimer.x > m_vEtherealTimer.y) {
+ m_vEtherealTimer.x -= m_vEtherealTimer.y;
+ }
}
void CRanrok::Late_Update(_float fTimeDelta)
@@ -161,89 +166,27 @@ void CRanrok::Late_Update(_float fTimeDelta)
}
m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
Set_Shadow(m_pGameInstance->IsIn_ShadowViewFrustum(m_pTransformCom->Get_State(STATE::POSITION), m_pTransformCom->Get_Radius()));
}
HRESULT CRanrok::Render()
{
- if (!m_bVisible)
+ if (!m_bVisible){
return S_OK;
-
+ }
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
-
- _uint iNumMeshes = m_pModelCom->Get_NumMeshes();
- _uint iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT);
- if (true == m_bDrawOutLine) {
- iShaderPass = ENUM_CLASS(SHADER_PASS_ANIM::OUTLINE_WRITE);
+ RENDER eCurrentPass = m_pGameInstance->Get_CurrentRenderPass();
+ HRESULT hr = E_FAIL;
+ if (RENDER::NONBLEND == eCurrentPass) {
+ hr = Render_Nonblend();
}
- if (FAILED(Render_DeadDisolve())) {
- return E_FAIL;
+ else if (RENDER::BLEND == eCurrentPass) {
+ hr = Render_Blend();
}
-
- if (FAILED(Render_Disolve())) {
- return E_FAIL;
- }
-
- for (_uint i = 0; i < iNumMeshes; i++)
- {
- if (FAILED(m_pShaderCom->Bind_Matrices(
- "g_OffsetMatrix",
- m_pModelCom->Get_OffsetMatrix(i).data(),
- (_int)m_pModelCom->Get_OffsetMatrix(i).size()
- )))
- {
- return E_FAIL;
- }
-
- if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
- return E_FAIL;
- }
- if (FAILED(m_pShaderCom->Begin(iShaderPass))) {
- return E_FAIL;
- }
-
- m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
- m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
-
- if (FAILED(m_pModelCom->Render(i))) {
- return E_FAIL;
- }
- }
-
- if (m_bDrawOutLine) {
- Render_OutLine();
- }
-
-#ifdef _DEBUG
- if (true == m_pCharacter_Controller->IsActive()) {
- if (FAILED(m_pCharacter_Controller->Render())) {
- return E_FAIL;
- }
- }
- else if (true == m_pRigidBody->IsActive()) {
- if (FAILED(m_pRigidBody->Render())) {
- return E_FAIL;
- }
- }
-#endif
-
- if (0.f < m_fDeadRatio) {
- _bool bDisolve = false;
- if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
- return E_FAIL;
- }
- }
-
- {
- _bool bDisolve = false;
- _float zero = 0.f;
- m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
- m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
- }
-
- return S_OK;
+ return hr;
}
HRESULT CRanrok::Render_Shadow(SHADOW eType)
@@ -378,6 +321,12 @@ HRESULT CRanrok::Ready_Components()
Desc.fRadius = 10.f;
__super::Ready_Components(&Desc);
+ SAFE_RELEASE(m_pShaderCom);
+
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
m_strModelPrototypeTag = TEXT("Prototype_Component_Ranrok_Model");
@@ -416,7 +365,7 @@ HRESULT CRanrok::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_RANROK"), (CComponent**)&m_pStat))) {
@@ -457,6 +406,105 @@ HRESULT CRanrok::Bind_ShaderResources()
}
return S_OK;
}
+HRESULT CRanrok::Render_Nonblend()
+{
+ if (FAILED(Render_DeadDisolve())) {
+ return E_FAIL;
+ }
+
+ if (FAILED(Render_Disolve())) {
+ return E_FAIL;
+ }
+
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::WINGS); i < ENUM_CLASS(RANROK_MESH_ORDER::END); ++i)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices( "g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size() )))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ if (m_bDrawOutLine) {
+ Render_OutLine();
+ }
+
+#ifdef _DEBUG
+ if (true == m_pCharacter_Controller->IsActive()) {
+ if (FAILED(m_pCharacter_Controller->Render())) {
+ return E_FAIL;
+ }
+ }
+ else if (true == m_pRigidBody->IsActive()) {
+ if (FAILED(m_pRigidBody->Render())) {
+ return E_FAIL;
+ }
+ }
+#endif
+
+ if (0.f < m_fDeadRatio) {
+ _bool bDisolve = false;
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool)))) {
+ return E_FAIL;
+ }
+ }
+
+ {
+ _bool bDisolve = false;
+ _float zero = 0.f;
+ m_pShaderCom->Bind_RawValue("g_bDisolve", &bDisolve, sizeof(_bool));
+ m_pShaderCom->Bind_RawValue("g_fDisolveRatio", &zero, sizeof(_float));
+ }
+ return S_OK;
+}
+HRESULT CRanrok::Render_Blend()
+{
+ _float fDiffuseUVRatio = (m_vEtherealTimer.x / m_vEtherealTimer.y);
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fEtherealRatio", &fDiffuseUVRatio, sizeof(_float)))) {
+ return E_FAIL;
+ }
+ for (_uint i = ENUM_CLASS(RANROK_MESH_ORDER::ETHEREAL_HOT_SPINE); i < ENUM_CLASS(RANROK_MESH_ORDER::WINGS); ++i)
+ {
+ if (FAILED(m_pShaderCom->Bind_Matrices("g_OffsetMatrix",
+ m_pModelCom->Get_OffsetMatrix(i).data(),
+ (_int)m_pModelCom->Get_OffsetMatrix(i).size())))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, m_bDrawOutLine))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
+
+ if (FAILED(m_pModelCom->Render(i))) {
+ return E_FAIL;
+ }
+ }
+
+ return S_OK;
+}
+
void CRanrok::MoveTo(_float fTimeDelta)
{
if (!m_pFSM->IsEnable(FSMSTATE::TUCKED))
@@ -466,58 +514,75 @@ void CRanrok::MoveTo(_float fTimeDelta)
return;
if (m_iCurrentFlow >= m_Points.size())
- {
m_iCurrentFlow = 0;
- }
-
- _vector Target;
- if (m_iCurrentFlow == 1)
- {
- _float fRandom = m_pGameInstance->Real_Random_Float(-20.f, 20.f);
- Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
- Target += XMVectorSet(0.f, fRandom, 0.f, 0.f);
- }
- else
- {
- Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
- }
+ _vector Target = m_Points[m_iCurrentFlow][m_iCurrentPoint];
_vector CurPos = m_pCharacter_Controller->Get_Position();
+ _vector vLook = m_pTransformCom->Get_State(STATE::LOOK);
_vector toTarget = Target - CurPos;
_float fDist = XMVectorGetX(XMVector3Length(toTarget));
+ GUI::Text("Dist %.2f", fDist);
+ if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
+ {
+ if (fDist < 10.f)
+ {
+ if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
+ {
+ m_bTucked = true;
+ m_pFSM->Disable_State(FSMSTATE::TUCKED);
+ }
- if (fDist < 10.f)
+ m_iCurrentPoint = (m_iCurrentPoint + 1) % m_Points[m_iCurrentFlow].size();
+ return;
+ }
+ }
+ else if (fDist < 10.f)
{
if (m_iCurrentPoint == m_Points[m_iCurrentFlow].size() - 1)
{
m_bTucked = true;
m_pFSM->Disable_State(FSMSTATE::TUCKED);
}
+
m_iCurrentPoint = (m_iCurrentPoint + 1) % m_Points[m_iCurrentFlow].size();
return;
}
- /*if (m_iCurrentFlow == 1)
- {
- AroundPoint(fTimeDelta);
- return;
- }*/
+ //_float4x4 CurMat, TargetMat, LerpMat;
- _vector vDir = XMVector3Normalize(toTarget);
+ //XMStoreFloat4x4(&CurMat,XMMatrixTranslationFromVector(CurPos));
- m_vMoveDir = XMVectorLerp(m_vMoveDir, vDir,fTimeDelta * 4.f);
+ //XMStoreFloat4x4(&TargetMat,XMMatrixTranslationFromVector(Target));
- m_vMoveDir = XMVector3Normalize(m_vMoveDir);
+ //_float fLerpRatio = fTimeDelta * 2.f;
+ //fLerpRatio = min(fLerpRatio, 1.f);
- m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + m_vMoveDir,fTimeDelta,4.f);
+ //CMyTools::MatrixLerp(&CurMat, &TargetMat, LerpMat, fLerpRatio);
+
+ //_vector vNextPos = XMVectorSet(LerpMat._41, LerpMat._42, LerpMat._43, 1.f);
+
+
+ //m_pTransformCom->Set_WorldMatrix(LerpMat);
+
+ //m_pCharacter_Controller->Set_Position(vNextPos);
+
+ static _vector vMoveDir = m_pTransformCom->Get_State(STATE::LOOK);
+
+ _vector vDir = XMVector3Normalize(Target - CurPos);
+
+ vMoveDir = XMVectorLerp(vMoveDir, vDir, fTimeDelta * 2.f);
+ vMoveDir = XMVector3Normalize(vMoveDir);
+
+ m_pTransformCom->LookAt_Horizontal_Lerp(CurPos + vMoveDir, fTimeDelta, 1.f);
+
+ _float Speed = 35.f;
+ m_pCharacter_Controller->Set_Position(
+ CurPos + vMoveDir * Speed * fTimeDelta
+ );
- _float speed = 50.f;
- m_pCharacter_Controller->Set_Position(CurPos + m_vMoveDir * speed * fTimeDelta);
}
-
-
void CRanrok::AroundPoint(_float fTimeDelta)
{
m_fAroundTime += fTimeDelta;
@@ -655,6 +720,8 @@ void CRanrok::Describe_Entity()
GUI::Text("Degree %.2f", m_fDegree);
GUI::Text("CurrFlow %d", m_iCurrentFlow);
+
+
_float3 Pos;
XMStoreFloat3(&Pos, Get_WorldPostion());
@@ -663,15 +730,50 @@ void CRanrok::Describe_Entity()
m_pCharacter_Controller->Set_Position(XMVectorSetW(XMLoadFloat3(&Pos), 1.f));
}
- ImGui::SameLine();
+ GUI::SameLine();
if (GUI::SmallButton("Copy"))
{
char buf[64];
sprintf_s(buf, "%.3ff, %.3ff, %.3ff", Pos.x, Pos.y, Pos.z);
- ImGui::SetClipboardText(buf);
+ GUI::SetClipboardText(buf);
+ m_Points[0].push_back(XMVectorSet(Pos.x, Pos.y, Pos.z, 1.f));
}
+ GUI::SameLine();
+
+ if (GUI::SmallButton("Clear"))
+ {
+ m_Points[0].clear();
+ }
+
+ GUI::Separator();
+ GUI::Text("Points[0] Count : %d", (_int)m_Points[0].size());
+
+ for (_uint i = 0; i < m_Points[0].size();)
+ {
+ _vector v = m_Points[0][i];
+ XMFLOAT3 p;
+ XMStoreFloat3(&p, v);
+
+ GUI::PushID(i);
+
+ GUI::Text("[%d] (%.2f, %.2f, %.2f)", i, p.x, p.y, p.z);
+
+ GUI::SameLine();
+
+ if (GUI::SmallButton("X"))
+ {
+ m_Points[0].erase(m_Points[0].begin() + i);
+ GUI::PopID();
+ continue;
+ }
+
+ GUI::PopID();
+ i++;
+ }
+
+
if (GUI::Button("MovePos"))
{
m_pCharacter_Controller->Set_Position(XMVectorSet(m_pGameInstance->Get_CamPosition()->x, m_pGameInstance->Get_CamPosition()->y, m_pGameInstance->Get_CamPosition()->z,1.f));
diff --git a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
index 5d70fb8d1..bf42ee736 100644
--- a/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
+++ b/Jusin154_Team3D/Client/Private/Ranrok_States.cpp
@@ -616,7 +616,13 @@ void CRanrok::Behavior_TuckedEnter()
pair<_uint, _bool> pairAnimInfo = {};
m_pFSM->Enable_State(FSMSTATE::TUCKED);
- pairAnimInfo = m_Animation[STATEANIM::TUCKED];
+ if (m_iCurrentFlow == 0)
+ {
+ pairAnimInfo = m_Animation[STATEANIM::FLY];
+ }
+ else {
+ pairAnimInfo = m_Animation[STATEANIM::TUCKED];
+ }
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, 1.f, true);
}
@@ -627,12 +633,11 @@ HRESULT CRanrok::Behavior_TuckedExitCheck(_float fTimeDelta)
MoveTo(fTimeDelta);
- if (m_bTucked&& iCurrAnimIndex == m_Animation[STATEANIM::TUCKED].first)
+ if (m_bTucked && iCurrAnimIndex !=m_Animation[STATEANIM::FLY_TO_HOVER].first)
{
m_iCurrentFlow++;
pairAnimInfo = m_Animation[STATEANIM::FLY_TO_HOVER];
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
- return S_OK;
}
if (m_pModelCom->IsFinishedAnim() && iCurrAnimIndex == m_Animation[STATEANIM::FLY_TO_HOVER].first)
@@ -1011,7 +1016,7 @@ void CRanrok::Set_Anim()
m_Animation[STATEANIM::PULSE] = { 33,false };
- m_Animation[STATEANIM::TUCKED] = { 21,true };
+ m_Animation[STATEANIM::TUCKED] = { 21,true }; // 21
m_Animation[STATEANIM::FLY_TO_HOVER] = { 22,false };
m_Animation[STATEANIM::LAND] = { 32,false };
@@ -1030,6 +1035,8 @@ void CRanrok::Set_Anim()
m_Animation[STATEANIM::DEAD] = { 34,false };
+ m_Animation[STATEANIM::FLY] = { 18,true };
+
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn.cpp b/Jusin154_Team3D/Client/Private/SpellLearn.cpp
index 884254d57..0a5a69e9d 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn.cpp
@@ -1,6 +1,8 @@
#include "pch.h"
#include "SpellLearn.h"
#include "GameInstance.h"
+#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
#include "InfoInstance.h"
CSpellLearn::CSpellLearn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -39,8 +41,12 @@ HRESULT CSpellLearn::Initialize(void* pArg)
}
m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
+ m_iTrailIndex = 0;
+ m_fSortZ = 0.02f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("OverrlayClear"), [this](void* p) {this->Set_FadeOut(); });
Change_Image(0);
Visible(false);
return S_OK;
@@ -87,7 +93,44 @@ void CSpellLearn::Update(_float fTimeDelta)
}
}
- m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_bReset == true)
+ {
+ m_Trail.clear();
+ m_ChaseTrail.clear();
+ m_bReset = false;
+ }
+
+ if (m_bHover == false)
+ {
+ fill(m_Trail.begin(), m_Trail.end(), _float2(-9999.f, -9999.f));
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
+ m_bReset = true;
+ }
+
+ if (m_pPointer != nullptr)
+ {
+ if (m_pPointer->Get_MoveStart() == true)
+ {
+ m_bHover = true;
+ m_vPointerPosition = m_pPointer->Get_Position();
+ m_vPointerScale = m_pPointer->Get_Current_Size();
+
+ m_vChasePosition = m_pChasePointer->Get_Position();
+ m_vChaseScale = m_pChasePointer->Get_Current_Size();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_fTime >= 0.3f)
+ {
+ m_fTime = 0.f;
+ m_Trail.push_back(m_vPointerPosition);
+ m_iTrailIndex++;
+ m_ChaseTrail.push_back(m_vChasePosition);
+ m_iChaseiTrailIndex++;
+ }
+ }
+ }
+
+
__super::Update(fTimeDelta);
}
@@ -108,7 +151,7 @@ HRESULT CSpellLearn::Render()
if (FAILED(Bind_ShaderResources())) {
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::COLOR)))) {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNCOLOR)))) {
return E_FAIL;
}
if (FAILED(m_pVIBufferCom->Bind_Resources())) {
@@ -168,6 +211,34 @@ HRESULT CSpellLearn::Bind_ShaderResources()
{
return E_FAIL;
}
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vPointerScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fPosition", &m_fCurrent_Position, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Trail", m_Trail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Count", &m_iTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseTrail", m_ChaseTrail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseCount", &m_iChaseiTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -195,9 +266,14 @@ HRESULT CSpellLearn::Ready_Components(void* pArg)
HRESULT CSpellLearn::Change_Image(_int SpellID)
{
+ m_bHover = false;
+ m_ChaseTrail.push_back(_float2(-9999.f, -9999.f));
+ m_Trail.push_back(_float2(-9999.f, -9999.f));
+ m_iTrailIndex = 0;
+ m_iChaseiTrailIndex = 0;
_wstring pName = TEXT("Prototype_Texture_");
_wstring pImageName = pName + m_pInfoInstance->Get_SpellLearn(SpellID).pImageName;
-
+ m_MoveLine = m_pInfoInstance->Get_SpellLearn(SpellID).Lines;
if (m_pDiffuse_TextureCom)
{
Remove_Component();
@@ -206,9 +282,21 @@ HRESULT CSpellLearn::Change_Image(_int SpellID)
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, pImageName, reinterpret_cast(&m_pDiffuse_TextureCom))))
return E_FAIL;
+ Set_FadeIn();
return S_OK;
}
+void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer, CSpellLearn_ChaserPointer* Chase)
+{
+ m_pPointer = Pointer;
+ m_pChasePointer = Chase;
+}
+
+void CSpellLearn::Clear()
+{
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
+}
+
CSpellLearn* CSpellLearn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
{
CSpellLearn* pInstance = new CSpellLearn(pDevice, pContext);
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Booster.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Booster.cpp
new file mode 100644
index 000000000..ecb3ae787
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Booster.cpp
@@ -0,0 +1,321 @@
+#include "pch.h"
+#include "SpellLearn_Booster.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CSpellLearn_Booster::CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Booster::CSpellLearn_Booster(const CSpellLearn_Booster& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_Booster::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 64.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_fAngle = XMConvertToRadians(0);
+ m_bHover = true;
+ m_fImagePosi = _float4(16.f, 16.f, 32.f, 32.f);
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOn"), [this](void* p) {this->BoosterOn(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOff"), [this](void* p) {this->BoosterOff(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Visible(true);
+ return S_OK;
+}
+
+void CSpellLearn_Booster::BoosterOn(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOn = true;
+ m_bBoosterOff = false;
+}
+
+void CSpellLearn_Booster::BoosterOff(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+
+ if (m_bBoosterOn == true)
+ return;
+
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOff = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("ChaseBooster"));
+}
+
+void CSpellLearn_Booster::Set_Index(_int iIndex)
+{
+ m_iIndex = iIndex;
+}
+
+void CSpellLearn_Booster::Reset()
+{
+ m_bBoosterOn = false;
+ m_bBoosterOff = false;
+ Set_FadeIn();
+}
+
+void CSpellLearn_Booster::Clear()
+{
+ Set_FadeOut();
+}
+
+void CSpellLearn_Booster::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_Booster::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNBOOSTER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Booster::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Booster::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOn", &m_bBoosterOn, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOff", &m_bBoosterOff, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SU_ButtonCalloutRing"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Mouse_LeftClick"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstFail"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_VFX_T_Speck_HighCoverage_D"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpellLearn_Booster* CSpellLearn_Booster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Booster::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Booster::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_Booster::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_ChaserPointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_ChaserPointer.cpp
new file mode 100644
index 000000000..05a2bcc0a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_ChaserPointer.cpp
@@ -0,0 +1,294 @@
+#include "pch.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "GameInstance.h"
+#include "SpellLearn_MovePointer.h"
+#include "InfoInstance.h"
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 32.f;
+ Desc.fSizeY = 32.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 0.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 165.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("ChaseBooster"), [this](void* p) {this->SpeedUp(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Set_SpellLearn(0);
+ Visible(false);
+ return S_OK;
+}
+
+void CSpellLearn_ChaserPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bMoveStart == true)
+ {
+ Line(fTimeDelta);
+ }
+
+ if (m_fMoveSpeed >= 165.f)
+ {
+ m_fMoveSpeed -= fTimeDelta;
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_ChaserPointer::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_ChaserPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpellLearn_ChaserPointer::Set_SpellLearn(_int Index)
+{
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ m_bMoveStart = false;
+ m_fTime = 0.f;
+ m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
+ m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
+ m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
+ m_fMoveSpeed = 165.f;
+}
+
+void CSpellLearn_ChaserPointer::Set_Move()
+{
+ m_bHover = true;
+ m_bMoveStart = true;
+}
+
+void CSpellLearn_ChaserPointer::Line(_float fTime)
+{
+ m_vLerp_Position = m_MoveLine[m_iCurrentLine];
+
+ if (Start_Lerp(fTime) == true)
+ {
+ if (m_iCurrentLine < m_iLineIndex - 1)
+ {
+ ++m_iCurrentLine;
+ }
+ else
+ {
+ m_bMoveStart = false;
+ }
+ }
+
+}
+
+void CSpellLearn_ChaserPointer::SpeedUp()
+{
+ m_fMoveSpeed = 190.f;
+}
+
+void CSpellLearn_ChaserPointer::Clear()
+{
+ m_fMoveSpeed = 0.f;
+ Set_FadeOut();
+}
+
+HRESULT CSpellLearn_ChaserPointer::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_ChaserPointer::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstDropBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpellLearn_ChaserPointer* CSpellLearn_ChaserPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_ChaserPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_ChaserPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_ChaserPointer::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp
index 0f4d1a4aa..cdfd5f9e0 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Data.cpp
@@ -50,12 +50,34 @@ HRESULT CSpellLearn_Data::Load_SpellInfo(const _char* pFilePath)
// 속성 읽기
Info.pSpellName = CMyTools::ToWstring(pName->Attribute("SpellName"));
Info.pImageName = CMyTools::ToWstring(pName->Attribute("ImageName"));
+ pName->QueryIntAttribute("SpellID", &Info.iSpellID);
+ pName->QueryIntAttribute("SpellType", &Info.iSpellType);
pName->QueryFloatAttribute("Size", &Info.fSpellSize);
_float fX{}, fY{};
pName->QueryFloatAttribute("x", &fX);
pName->QueryFloatAttribute("y", &fY);
Info.fStartPosition = _float2(fX, fY);
+ _float endx{}, endy{};
+ pName->QueryFloatAttribute("endx", &endx);
+ pName->QueryFloatAttribute("endy", &endy);
+ Info.fEndPosition = _float2(endx, endy);
+
+ tinyxml2::XMLElement* pBooster = pName->FirstChildElement("Booster");
+ while (pBooster)
+ {
+ tinyxml2::XMLElement* pPos = pBooster->FirstChildElement("Pos");
+ if (pPos)
+ {
+ _float px{}, py{};
+ pPos->QueryFloatAttribute("x", &px);
+ pPos->QueryFloatAttribute("y", &py);
+ Info.Booster.push_back(XMVectorSet(px, py, 0.f, 1.f));
+ }
+
+ // 다음 Position으로 이동
+ pBooster = pBooster->NextSiblingElement("Booster");
+ }
// Position 요소 반복
tinyxml2::XMLElement* pPosition = pName->FirstChildElement("Position");
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_LookPointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_LookPointer.cpp
new file mode 100644
index 000000000..57e1deea0
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_LookPointer.cpp
@@ -0,0 +1,255 @@
+#include "pch.h"
+#include "SpellLearn_LookPointer.h"
+#include "GameInstance.h"
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 100.f;
+ Desc.fY = 100.f;
+ Desc.fSizeX = 80.f;
+ Desc.fSizeY = 80.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 130.f;
+ Set_SpellLearn(0);
+ m_fAngle = XMConvertToRadians(0);
+ Visible(true);
+ m_localX = 0.f;
+ m_localY = 20.f;
+ return S_OK;
+}
+
+void CSpellLearn_LookPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fAngle = XMConvertToRadians(static_cast(m_pOwner)->Get_Angle());
+
+ float cosA = cos(m_fAngle);
+ float sinA = sin(m_fAngle);
+
+ float rotatedX = m_localX * cosA - m_localY * sinA;
+ float rotatedY = m_localX * sinA + m_localY * cosA;
+
+ MoveX(rotatedX);
+ MoveY(rotatedY);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_LookPointer::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_LookPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_LookPointer::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_SU_CursorArrow"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_LookPointer::Set_SpellLearn(_int Index)
+{
+ m_bMoveStart = false;
+ m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
+ m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+}
+
+CSpellLearn_LookPointer* CSpellLearn_LookPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_LookPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_LookPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_LookPointer::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
index 85ca12265..306ace767 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_MovePointer.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "SpellLearn_MovePointer.h"
#include "GameInstance.h"
+#include "SpellLearn_LookPointer.h"
#include "InfoInstance.h"
CSpellLearn_MovePointer::CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -38,41 +39,69 @@ HRESULT CSpellLearn_MovePointer::Initialize(void* pArg)
return E_FAIL;
}
- m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fTimeMult = 10.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
- m_fMoveSpeed = 15.f;
+ m_fMoveSpeed = 105.f;
Set_SpellLearn(0);
m_fAngle = XMConvertToRadians(0);
+ static_cast(m_pOwner)->Add_Function(TEXT("Booster"), [this](void* p) {this->Set_Booster(p); });
Visible(false);
return S_OK;
}
void CSpellLearn_MovePointer::Set_SpellLearn(_int Index)
{
+ m_bMoveStart = false;
+ m_bHover = true;
m_iLineIndex = _int(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
+ m_Boosters = m_pInfoInstance->Get_SpellLearn(Index).Booster;
m_MoveLine = m_pInfoInstance->Get_SpellLearn(Index).Lines;
m_iCurrentLine = 0;
m_fX = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.x;
m_fY = m_pInfoInstance->Get_SpellLearn(Index).fStartPosition.y;
+ m_iCurrentLine = 0;
+ m_Booster.iBoosterIndex = -1;
+ m_Booster.bBoosterOn = false;
+ Set_FadeIn();
}
-void CSpellLearn_MovePointer::Line(_float fTime)
+_int CSpellLearn_MovePointer::Get_SpellTrail()
+{
+ return m_iCurrentLine;
+}
+
+_bool CSpellLearn_MovePointer::Get_MoveStart()
+{
+ return m_bMoveStart;
+}
+
+void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
{
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
- if (Start_Lerp(m_fMoveSpeed * fTime) == true)
+ if (Start_Lerp_Speed(fTime, fMouse) == true)
{
if (m_iCurrentLine < m_iLineIndex - 1)
{
++m_iCurrentLine;
+ m_fPerPosition = _float2(m_MoveLine[m_iCurrentLine - 1].m128_f32[0], m_MoveLine[m_iCurrentLine - 1].m128_f32[1]);
}
else
{
m_bMoveStart = false;
+ Set_FadeOut();
+ static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear"));
}
}
+}
+void CSpellLearn_MovePointer::Set_Booster(void* pArg)
+{
+ Booster* Info = static_cast(pArg);
+ m_Booster.iBoosterIndex = Info->iBoosterIndex;
+ m_Booster.bBoosterOn = Info->bBoosterOn;
+ m_bBooster = true;
}
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
@@ -116,28 +145,45 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
}
}
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse{};
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+
+ _float2 fFinalMouse{};
+ fFinalMouse.x = fMouse.x - m_fX;
+ fFinalMouse.y = fMouse.y - m_fY;
+
if (m_pGameInstance->Key_Down(DIK_L))
{
m_bMoveStart = true;
+ m_bBooster = false;
+ m_fMoveSpeed = 105.f;
}
if (m_bMoveStart == true)
{
- Line(fTimeDelta);
+ Line(fTimeDelta, fMouse);
}
- POINT ptMouse{};
- GetCursorPos(&ptMouse);
- ScreenToClient(g_hWnd, &ptMouse);
- _float2 fMouse;
- fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
- fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+ m_fAngle = atan2(-fFinalMouse.x, fFinalMouse.y);
- fMouse.x = fMouse.x - m_fX;
- fMouse.y = fMouse.y - m_fY;
+ if (m_bBooster == true)
+ {
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
+ {
+ m_bBooster = false;
+ m_fMoveSpeed = 160.f;
+ static_cast(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
+ }
+ }
-
- m_fAngle = atan2(-fMouse.x, fMouse.y);
+ if (m_fMoveSpeed >= 105.f)
+ {
+ m_fMoveSpeed -= fTimeDelta * m_fTimeMult;
+ }
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
@@ -150,7 +196,8 @@ void CSpellLearn_MovePointer::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
@@ -239,6 +286,10 @@ HRESULT CSpellLearn_MovePointer::Ready_Components(void* pArg)
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLeam_LookPointer))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp
new file mode 100644
index 000000000..c97dfdcf8
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Overlay.cpp
@@ -0,0 +1,391 @@
+#include "pch.h"
+#include "SpellLearn_Overlay.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_Overlay::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_iImageFrameX = 8;
+ m_iImageFrameY = 8;
+ m_fFrame = 0.2f;
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(-135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_vUVScale.x = 1.f;
+ m_vUVScale.y = 1.f;
+ m_fCoolTime = 5.f;
+ m_fSortZ = 0.01f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Compute_UI(5);
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Set_SpellLearn(_int Index)
+{
+ Compute_UI(m_pInfoInstance->Get_SpellLearn(Index).iSpellID);
+ m_vUVScale.y = 0.f;
+ m_fTrail = 0.f;
+ m_iSpellType = m_pInfoInstance->Get_SpellLearn(Index).iSpellType;
+ m_fSpellLearn = _float(m_pInfoInstance->Get_SpellLearn(Index).Lines.size());
+ MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
+ MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Overlay::Set_Count(_int Index)
+{
+ m_fTrail = _float(Index);
+}
+
+void CSpellLearn_Overlay::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ Update_Trail(fTimeDelta);
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Overlay::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Overlay::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Overlay::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFrame", &m_fFrame, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountX", &m_iImageFrameX, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemBack_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Clear()
+{
+ m_vUVScale.y = 1.2f;
+ m_bClear = true;
+}
+
+void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
+{
+ _float2 fImage_Size = { 1024.f, 1792.f };
+
+ _uint iCountX = 4;
+ _uint iCountY = 6;
+
+ _float iImageX = 256.f;
+ _float iImageY = 256.f;
+
+ _uint iframeX = SpellID % iCountX;
+ _uint iframeY = SpellID / iCountX;
+
+ _float2 UVStart;
+ UVStart.x = iframeX * iImageX / fImage_Size.x;
+ UVStart.y = iframeY * iImageY / fImage_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
+ UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
+
+ _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
+ m_vUV = UV;
+}
+
+void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
+{
+ m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed);
+}
+
+void CSpellLearn_Overlay::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("OverrlayClear"));
+ }
+}
+
+CSpellLearn_Overlay* CSpellLearn_Overlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Overlay::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Overlay::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_Overlay::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
index ff5a40be3..b01e080f1 100644
--- a/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Panel.cpp
@@ -4,7 +4,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SPellLearn_ChaserPointer.h"
#include "SpellLearn_Data.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
#include "InfoInstance.h"
CSpellLearn_Panel::CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
@@ -47,11 +51,45 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
m_fDelayTime = 1.f;
+ static_cast(m_pSpellLearn)->Set_Pointer(
+ static_cast(m_pSpellLearn_MovePointer),
+ static_cast(m_pSpellLearn_ChaserPointer));
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
+ m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
+ }
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates.push_back(m_State);
+ m_ChaseStates.push_back(m_State);
+ }
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(0);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(0);
Visible(true);
ElementAllVisible(true);
return S_OK;
}
+void CSpellLearn_Panel::Set_Learn(_int Index)
+{
+ m_fTime = 0.f;
+ static_cast(m_pSpellLearn)->Change_Image(Index);
+ static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(
+ m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[0],
+ m_pInfoInstance->Get_SpellLearn(Index).Booster[i].m128_f32[1]);
+ static_cast(m_pBooster[i])->Reset();
+ }
+}
+
void CSpellLearn_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
@@ -78,11 +116,90 @@ void CSpellLearn_Panel::Update(_float fTimeDelta)
{
Index++;
}
- static_cast(m_pSpellLearn)->Change_Image(Index);
- static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
- static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ Set_Learn(Index);
}
+ if (static_cast(m_pSpellLearn_MovePointer)->Get_MoveStart() == true)
+ {
+ m_fTime += fTimeDelta;
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = m_PointerStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x);
+
+ m_PointerStates[i].bHit = bPointer;
+
+ if (m_PointerStates[i].bHit == true && m_PointerStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+
+ if (m_PointerStates[i].bHit == false && m_PointerStates[i].bPerHit == true)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+ }
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_ChaseStates[i].bPerHit = m_ChaseStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x);
+
+ m_ChaseStates[i].bHit = bPointer;
+
+ if (m_ChaseStates[i].bHit == true && m_ChaseStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("BoosterOff"), &m_Booster);
+ }
+
+ static_cast(m_pSpellLearn_Overlay)->Set_Count(
+ static_cast(m_pSpellLearn_MovePointer)->Get_SpellTrail());
+
+ }
+
+ if (m_fTime >= 1.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_FadeIn();
+ }
+
+ if (m_fTime >= 2.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_Move();
+
+ if (_bool bPointer = Chack_Element(static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x) == true)
+ {
+ Set_Learn(Index);
+
+ m_Booster.iBoosterIndex = _int(-1);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ for (size_t i = 0; i < m_PointerStates.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = false;
+ m_PointerStates[i].bHit = false;
+ }
+ }
+
+ }
+ }
__super::Update(fTimeDelta);
}
@@ -204,6 +321,36 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_ChaserPointer))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Overlay))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Overlay"), m_pSpellLearn_Overlay);
+
+ for (_int i = 0; i < 3; ++i)
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Booster))))
+ {
+ return E_FAIL;
+ }
+
+ static_cast(m_pSpellLearn_Booster)->Set_Index(i);
+
+ m_pBooster.push_back(m_pSpellLearn_Booster);
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Client/Private/SpellLearn_Slot.cpp b/Jusin154_Team3D/Client/Private/SpellLearn_Slot.cpp
new file mode 100644
index 000000000..5fcebb92a
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/SpellLearn_Slot.cpp
@@ -0,0 +1,287 @@
+#include "pch.h"
+#include "SpellLearn_Slot.h"
+#include "GameInstance.h"
+#include "InfoInstance.h"
+
+CSpellLearn_Slot::CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Slot::CSpellLearn_Slot(const CSpellLearn_Slot& rhs)
+ :CElementObject(rhs),
+ m_pInfoInstance(CInfoInstance::GetInstance())
+{
+}
+
+HRESULT CSpellLearn_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ return S_OK;
+}
+
+void CSpellLearn_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Slot::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_Slot::Set_SpellLearn(_int Index)
+{
+ MoveX(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.x);
+ MoveY(m_pInfoInstance->Get_SpellLearn(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Slot::Clear()
+{
+ m_bClear = true;
+}
+
+void CSpellLearn_Slot::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ }
+}
+
+CSpellLearn_Slot* CSpellLearn_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+#ifdef _DEBUG
+void CSpellLearn_Slot::Describe_Entity()
+{
+}
+#endif // _DEBUG
diff --git a/Jusin154_Team3D/Client/Private/Transformation.cpp b/Jusin154_Team3D/Client/Private/Transformation.cpp
index be246619c..c21827c0b 100644
--- a/Jusin154_Team3D/Client/Private/Transformation.cpp
+++ b/Jusin154_Team3D/Client/Private/Transformation.cpp
@@ -145,7 +145,7 @@ HRESULT CTransformation::Pre_Setting(CGameObject* pObject, void* pArg)
/* PJ 월드 구성하기 */
- _vector vRight = XMVector3Normalize(vDirection);
+ _vector vRight = XMVector3Normalize(XMLoadFloat3(&m_vCameraLook));
_vector vLook = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vRight));
_vector vUp = XMVector3Normalize(XMVector3Cross(vRight, vLook));
_vector vPos = pWand->Get_WorldPostion();
@@ -216,15 +216,13 @@ void CTransformation::OnCollision(CGameObject* pOther, void* pDesc)
XMStoreFloat4(&vCCTPos , pCCT->Get_Position());
- //PSX::PxTransform pxTransform((_float)vCCTPos.x, (_float)vCCTPos.y + 100.f, (_float)vCCTPos.z);
- //pCCT->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
//m_pCharacter_Controller->Move(fTimeDelta);
m_pInfoInstance->ActiveAt_Interactive(XMLoadFloat4(&vCCTPos));
+ CollisionDesc.pObject->Set_Visible(false);
//m_pTransformCom->Set_WorldMatrix(CollisionDesc.pObject->Get_Component()->Get_Actor()->getGlobalPose());
- //pCCT->ConvertToDO(*CollisionDesc.pObject->Get_Component());
CEffectParts* pHit_Light = Get_PartObject("Hit_Light");
diff --git a/Jusin154_Team3D/Client/Private/TransformationSide.cpp b/Jusin154_Team3D/Client/Private/TransformationSide.cpp
new file mode 100644
index 000000000..abd658bd0
--- /dev/null
+++ b/Jusin154_Team3D/Client/Private/TransformationSide.cpp
@@ -0,0 +1,214 @@
+#include "pch.h"
+#include "TransformationSide.h"
+
+#include "GameInstance.h"
+#include "EffectParts.h"
+#include "Player.h"
+#include "Wand.h"
+#include "TrailObject.h"
+
+
+CTransformationSide::CTransformationSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ : CEffect_Container{ pDevice, pContext }
+{
+}
+
+CTransformationSide::CTransformationSide(const CTransformationSide& rhs)
+ : CEffect_Container(rhs)
+{
+}
+
+HRESULT CTransformationSide::Initialize_Prototype()
+{
+
+ if (FAILED(Load_Package("../Bin/Resources/Data/Effect/Package/TransformationSide")))
+ return E_FAIL;
+
+ return S_OK;
+
+}
+
+HRESULT CTransformationSide::Initialize(void* pArg)
+{
+ if (FAILED(__super::Initialize(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Ready_Components(pArg)))
+ return E_FAIL;
+
+ if (FAILED(Create_Effect()))
+ return E_FAIL;
+
+ m_wstrEffectName = L"TransformationSide";
+
+
+ //m_pWandParticle = Get_PartObject("Wand_PT");
+ m_pWandLight = Get_PartObject("Wand_Light_B");
+ m_pWandTrail = Get_PartObject();
+
+ SAFE_ADDREF(m_pWandLight);
+ SAFE_ADDREF(m_pWandTrail);
+ //SAFE_ADDREF(m_pWandParticle);
+
+ m_fDuration = 2.f;
+
+ m_Events.emplace(0.6f, [&]() {
+ m_isParticleEnd = true;
+ //m_pWandParticle->Get_Component()->Set_State(STATE::POSITION, XMVectorSet(0.f, -500.f, 0.f, 1.f));
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return;
+
+ m_isTrailEnd = true;
+
+ XMStoreFloat4x4(&m_TrailStopMat, pWand->Get_WorldMatrix());
+ });
+
+ return S_OK;
+}
+
+void CTransformationSide::Priority_Update(_float fTimeDelta)
+{
+ __super::Priority_Update(fTimeDelta);
+
+}
+
+void CTransformationSide::Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Update(fTimeDelta);
+
+ Update_Event(fTimeDelta);
+
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return;
+
+
+ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+
+ // 파티클생성이 막히면 실행되지 않음
+ //if (m_isParticleEnd == false)
+ // m_pWandParticle->Get_Component()->Set_WorldMatrix(pWand->Get_WorldMatrix());
+
+ // 트레일이 종료되면 위치를 고정함
+ _matrix TrailMat = m_isTrailEnd ? XMLoadFloat4x4(&m_TrailStopMat) : pWand->Get_WorldMatrix();
+ m_pWandTrail->Trail_Update(TrailMat, fTimeDelta);
+
+}
+
+void CTransformationSide::Late_Update(_float fTimeDelta)
+{
+ if (m_bVisible == false)
+ return;
+
+ __super::Late_Update(fTimeDelta);
+
+
+}
+
+HRESULT CTransformationSide::Pre_Setting(CGameObject* pObject, void* pArg)
+{
+ if (FAILED(__super::Pre_Setting(pObject, nullptr)))
+ return E_FAIL;
+
+
+ CWand* pWand = static_cast(m_pOwner);
+
+ if (pWand == nullptr)
+ return E_FAIL;
+
+ //m_pWandParticle->Set_Visible(true);
+ m_isParticleEnd = false; // 파티클이 일정시간이 되면 나오지 않게 하려고
+
+ m_pWandLight->Set_Visible(true);
+
+ /*트레일 초기화 */
+ m_pWandTrail->Set_Visible(true);
+ m_isTrailEnd = false;
+ m_pWandTrail->Get_Component()->Reset_Trail();
+
+ /*_vector pPos = pPlayer->Get_WandPos().r[3];*/
+
+ m_pWandLight->Get_Component()->Set_State(STATE::POSITION, pWand->Get_WorldPostion());
+
+ return S_OK;
+}
+
+HRESULT CTransformationSide::Ready_Components(void* pArg)
+{
+ if (FAILED(__super::Ready_Components(pArg))) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+HRESULT CTransformationSide::Ready_Child()
+{
+ return S_OK;
+}
+
+CTransformationSide* CTransformationSide::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CTransformationSide* pInstance = new CTransformationSide(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CTransformationSide");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+
+CGameObject* CTransformationSide::Clone(void* pArg, CGameObject* pOwner)
+{
+ CTransformationSide* pInstance = new CTransformationSide(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CTransformationSide");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CTransformationSide::OnCollision(CGameObject* pOther, void* pDesc)
+{
+ ON_COLLISION_INFO* CollisionDesc = static_cast(pDesc);
+
+}
+
+void CTransformationSide::Free()
+{
+ __super::Free();
+
+
+ Safe_Release(m_pWandLight);
+ Safe_Release(m_pWandTrail);
+ //Safe_Release(m_pWandParticle);
+}
+#ifdef _DEBUG
+
+void CTransformationSide::Describe_Entity()
+{
+
+}
+
+#endif // _DEBUG
+
+HRESULT CTransformationSide::Bind_ShaderResources()
+{
+ return S_OK;
+}
+
+
diff --git a/Jusin154_Team3D/Client/Private/Troll.cpp b/Jusin154_Team3D/Client/Private/Troll.cpp
index 25420d13a..fb8948a69 100644
--- a/Jusin154_Team3D/Client/Private/Troll.cpp
+++ b/Jusin154_Team3D/Client/Private/Troll.cpp
@@ -461,7 +461,7 @@ HRESULT CTroll::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Client/Public/Camera_Debug.h b/Jusin154_Team3D/Client/Public/Camera_Debug.h
index b5183c874..d1cb8c255 100644
--- a/Jusin154_Team3D/Client/Public/Camera_Debug.h
+++ b/Jusin154_Team3D/Client/Public/Camera_Debug.h
@@ -29,7 +29,6 @@ class CCamera_Debug final : public CCamera
_float m_fMouseSensor = {};
_float4x4 m_matInitial = {};
-
private:
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
diff --git a/Jusin154_Team3D/Client/Public/Client_Enum.h b/Jusin154_Team3D/Client/Public/Client_Enum.h
index c7dc9d57d..2428c25c1 100644
--- a/Jusin154_Team3D/Client/Public/Client_Enum.h
+++ b/Jusin154_Team3D/Client/Public/Client_Enum.h
@@ -19,8 +19,8 @@ namespace Client
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
- SPELL_LEARN,
- ENEMY_DETECTION, INTERACTION_OBJECT, END };
+ SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER,
+ ENEMY_DETECTION, INTERACTION_OBJECT, END};
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
enum class SHADER_PASS_NPC_PBR_ANIM {
@@ -57,7 +57,7 @@ namespace Client
SCREEN_WIND,
/*사이드*/
- JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE,
+ JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, WAND_END, LIGHTNING_SIDE, TRANSFORMATION_SIDE,
/*트롤*/
TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, GOBLIN_PROTEGO,
diff --git a/Jusin154_Team3D/Client/Public/Client_Struct.h b/Jusin154_Team3D/Client/Public/Client_Struct.h
index b7939626d..d3986ed7d 100644
--- a/Jusin154_Team3D/Client/Public/Client_Struct.h
+++ b/Jusin154_Team3D/Client/Public/Client_Struct.h
@@ -40,6 +40,7 @@ namespace Client
typedef struct tagLockOnInfo {
CUnit* pUnit = { nullptr };
class CMapElement_Interactable* pInteractive = { nullptr };
+ class CMapElement_Chest* pChest = { nullptr };
}LOCKON_INFO;
typedef struct tagUnitInfo
@@ -93,10 +94,14 @@ namespace Client
typedef struct tagSpellLearnInfo
{
- _wstring pSpellName{};
- _wstring pImageName{};
- _float fSpellSize{};
- _float2 fStartPosition{};
+ _wstring pSpellName{};
+ _wstring pImageName{};
+ _int iSpellID{};
+ _int iSpellType{};
+ _float fSpellSize{};
+ _float2 fStartPosition{};
+ _float2 fEndPosition{};
+ vector<_vector> Booster;
vector<_vector> Lines;
}SPELLLEARNINFO;
diff --git a/Jusin154_Team3D/Client/Public/Goblin.h b/Jusin154_Team3D/Client/Public/Goblin.h
index 5bcc789be..47280b7fd 100644
--- a/Jusin154_Team3D/Client/Public/Goblin.h
+++ b/Jusin154_Team3D/Client/Public/Goblin.h
@@ -59,6 +59,7 @@ class CGoblin final : public CMonster
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
+ void HitState_Behavior(_float fTimeDelta);
public:
static CGoblin* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -89,6 +90,8 @@ class CGoblin final : public CMonster
_float m_fSpeed = {};
_bool m_bAir = {};
_float m_fGravityAmount = {};
+ _float m_fHitTimer = {};
+ _float m_fTumbleTimer = {};
void Behavior_IdleEnter();
HRESULT Behavior_IdleExitCheck();
diff --git a/Jusin154_Team3D/Client/Public/Goblin_Mage.h b/Jusin154_Team3D/Client/Public/Goblin_Mage.h
index 4901a39f9..019a80a71 100644
--- a/Jusin154_Team3D/Client/Public/Goblin_Mage.h
+++ b/Jusin154_Team3D/Client/Public/Goblin_Mage.h
@@ -60,6 +60,7 @@ class CGoblin_Mage final : public CMonster
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
+ void HitState_Behavior(_float fTimeDelta);
public:
static CGoblin_Mage* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
@@ -93,6 +94,8 @@ class CGoblin_Mage final : public CMonster
_float m_fSpeed = {};
_bool m_bAir = {};
_float m_fGravityAmount = {};
+ _float m_fHitTimer = {};
+ _float m_fTumbleTimer = {};
#ifdef _DEBUG
_bool m_isDebugMode = {};
diff --git a/Jusin154_Team3D/Client/Public/Monster.h b/Jusin154_Team3D/Client/Public/Monster.h
index 5144c7b4c..765e4c6dd 100644
--- a/Jusin154_Team3D/Client/Public/Monster.h
+++ b/Jusin154_Team3D/Client/Public/Monster.h
@@ -7,6 +7,15 @@ NS_BEGIN(Client)
class CMonster abstract : public CUnit
{
+protected:
+ enum class HIT_STATE
+ {
+ GROUND,
+ AIR_LEVIOSO,
+ AIR_KNOCKBACK,
+ END
+ };
+
protected:
CMonster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CMonster(const CMonster& Prototype);
@@ -43,6 +52,7 @@ class CMonster abstract : public CUnit
_bool m_bDisolve = { false };
_float m_fDegree = {};
_float m_fCross = {};
+ _int m_eHitState = { ENUM_CLASS(HIT_STATE::END) };
protected:
virtual HRESULT Initialize_Prototype() override;
diff --git a/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h b/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
new file mode 100644
index 000000000..8529509dd
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/NPC_EleazarFig.h
@@ -0,0 +1,40 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Unit.h"
+
+NS_BEGIN(Client)
+
+class CNPC_EleazarFig final : public CUnit
+{
+protected:
+ CNPC_EleazarFig(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CNPC_EleazarFig(const CNPC_EleazarFig& Prototype);
+ virtual ~CNPC_EleazarFig() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+ virtual HRESULT Render() override;
+ virtual HRESULT Render_Shadow(SHADOW eType) override;
+protected:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+
+protected:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ HRESULT Ready_Components(void* pArg);
+ HRESULT Bind_ShaderResources() override;
+
+public:
+ static CNPC_EleazarFig* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr);
+ virtual void Free() override;
+#ifdef _DEBUG
+ virtual void Describe_Entity() override;
+
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Client/Public/Ranrok.h b/Jusin154_Team3D/Client/Public/Ranrok.h
index c0a2b7f16..3a21dddcd 100644
--- a/Jusin154_Team3D/Client/Public/Ranrok.h
+++ b/Jusin154_Team3D/Client/Public/Ranrok.h
@@ -19,6 +19,18 @@ class CRanrok final : public CMonster
RUSH,
END
};
+ enum class RANROK_MESH_ORDER {
+ ETHEREAL_HOT_SPINE,
+ ETHEREAL_HOT_WINGS,
+ ETHEREAL_HOT_ARMS,
+ ETHEREAL_HOT_SHELL,
+ ETHEREAL_AURA,
+ ETHEREAL_EYES,
+ ETHEREAL_WINGS,
+ WINGS,
+ BODY,
+ END
+ };
enum class RANROK_PHASE
{
@@ -49,6 +61,8 @@ class CRanrok final : public CMonster
CRigidBody_Dynamic* m_pRigidBody = { nullptr };
class CEffectPool* m_pEffectPool = nullptr;
_float2 m_vStunTimer = { 0.f, 4.f };
+ _float2 m_vAuraTimer = { 0.f, 0.16f };
+ _float2 m_vEtherealTimer = { 0.f, 0.16f };
_uint iIndex;
DAMAGE_INFO m_DamageInfo;
@@ -58,6 +72,8 @@ class CRanrok final : public CMonster
HRESULT Ready_Components();
HRESULT Ready_Parts();
HRESULT Bind_ShaderResources();
+ HRESULT Render_Nonblend();
+ HRESULT Render_Blend();
void MoveTo(_float fTimeDelta);
void AroundPoint(_float fTimeDelta);
HRESULT Load_RanrokPos(const _char* pFilePath);
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn.h b/Jusin154_Team3D/Client/Public/SpellLearn.h
index 2e8e8f361..9f05f27b6 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn.h
@@ -33,6 +33,10 @@ class CSpellLearn final : public CElementObject
public:
HRESULT Change_Image(_int SpellID);
+ void Set_Pointer(class CSpellLearn_MovePointer* Pointer, class CSpellLearn_ChaserPointer* Chase);
+
+private:
+ void Clear();
private:
CInfoInstance* m_pInfoInstance = { nullptr };
@@ -42,6 +46,25 @@ class CSpellLearn final : public CElementObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ class CSpellLearn_MovePointer* m_pPointer = { nullptr };
+ class CSpellLearn_ChaserPointer* m_pChasePointer = { nullptr };
+
+ _float2 m_vPointerPosition{};
+ _float3 m_vPointerScale{};
+
+ _float2 m_vChasePosition{};
+ _float3 m_vChaseScale{};
+
+ _bool m_bReset{};
+
+ _int m_iIndex{};
+ _int m_iTrailIndex{};
+ vector<_float2> m_Trail;
+
+ _int m_iChaseiTrailIndex{};
+ vector<_float2> m_ChaseTrail;
+ vector<_vector> m_MoveLine;
+
public:
static CSpellLearn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Booster.h b/Jusin154_Team3D/Client/Public/SpellLearn_Booster.h
new file mode 100644
index 000000000..14d8dcabc
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Booster.h
@@ -0,0 +1,72 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_Booster final : public CElementObject
+{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+private:
+ CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Booster(const CSpellLearn_Booster& rhs);
+ virtual ~CSpellLearn_Booster() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void BoosterOn(void* pArg);
+ void BoosterOff(void* pArg);
+
+ void Set_Index(_int iIndex);
+ void Reset();
+
+private:
+ void Clear();
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_bBoosterOn = { false };
+ _bool m_bBoosterOff = { false };
+ _float4 m_fImagePosi{};
+ _int m_iIndex{};
+public:
+ static CSpellLearn_Booster* 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
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_ChaserPointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_ChaserPointer.h
new file mode 100644
index 000000000..985b4bb2d
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_ChaserPointer.h
@@ -0,0 +1,65 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_ChaserPointer final : public CElementObject
+{
+private:
+ CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs);
+ virtual ~CSpellLearn_ChaserPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Move();
+private:
+ void Line(_float fTime);
+ void SpeedUp();
+ void Clear();
+
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+
+public:
+ static CSpellLearn_ChaserPointer* 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
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_LookPointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_LookPointer.h
new file mode 100644
index 000000000..34d128575
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_LookPointer.h
@@ -0,0 +1,59 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_LookPointer final : public CElementObject
+{
+private:
+ CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs);
+ virtual ~CSpellLearn_LookPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+ _float m_localX{};
+ _float m_localY{};
+public:
+ static CSpellLearn_LookPointer* 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
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
index a467bb9b9..b1ed7965d 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_MovePointer.h
@@ -13,6 +13,12 @@ NS_BEGIN(Client)
class CSpellLearn_MovePointer final : public CElementObject
{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
private:
CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_MovePointer(const CSpellLearn_MovePointer& rhs);
@@ -33,8 +39,12 @@ class CSpellLearn_MovePointer final : public CElementObject
public:
void Set_SpellLearn(_int Index);
+ _int Get_SpellTrail();
+ _bool Get_MoveStart();
private:
- void Line(_float fTime);
+ void Line(_float fTime, _float2 fMouse);
+
+ void Set_Booster(void* pArg);
private:
@@ -43,11 +53,17 @@ class CSpellLearn_MovePointer final : public CElementObject
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ class SpellLearm_LookPointer* m_pSpellLeam_LookPointer = { nullptr };
+
_bool m_bMoveStart = { false };
+ _bool m_bBooster = { false };
+
+ Booster m_Booster;
_int m_iLineIndex{};
_int m_iCurrentLine{};
vector<_vector> m_MoveLine;
+ vector<_vector> m_Boosters;
public:
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Overlay.h b/Jusin154_Team3D/Client/Public/SpellLearn_Overlay.h
new file mode 100644
index 000000000..578c725b7
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Overlay.h
@@ -0,0 +1,72 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_Overlay final : public CElementObject
+{
+private:
+ CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs);
+ virtual ~CSpellLearn_Overlay() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Count(_int Index);
+
+private:
+ void Clear();
+ void Compute_UI(_uint SpellID);
+ void Update_Trail(_float fTimeaDalta);
+ void SizeUp(_float fSizeX);
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iImageFrameX{};
+ _int m_iImageFrameY{};
+ _float m_fFrame{};
+ _float4 m_vUV{};
+
+ _float m_fSpellLearn{};
+ _float m_fTrail{};
+ _float m_fTargetTrail{};
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
+public:
+ static CSpellLearn_Overlay* 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
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h b/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h
index 4d6a891bf..79535e13b 100644
--- a/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Panel.h
@@ -13,7 +13,17 @@ NS_BEGIN(Client)
class CSpellLearn_Panel final : public CPanelObject
{
-
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+ struct State
+ {
+ _bool bHit = { false };
+ _bool bPerHit = { false };
+ };
private:
CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_Panel(const CSpellLearn_Panel& rhs);
@@ -33,6 +43,9 @@ class CSpellLearn_Panel final : public CPanelObject
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+public:
+ void Set_Learn(_int Index);
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -46,10 +59,18 @@ class CSpellLearn_Panel final : public CPanelObject
CGameObject* m_pSpellLearn_Name = { nullptr };
CGameObject* m_pSpellLearn = { nullptr };
CGameObject* m_pSpellLearn_MovePointer = { nullptr };
+ CGameObject* m_pSpellLearn_ChaserPointer = { nullptr };
CGameObject* m_pSpellLearn_Data = { nullptr };
+ CGameObject* m_pSpellLearn_Booster = { nullptr };
+ CGameObject* m_pSpellLearn_Slot = { nullptr };
+ CGameObject* m_pSpellLearn_Overlay = { nullptr };
_int Index{};
-
+ vector m_pBooster;
+ Booster m_Booster;
+ State m_State;
+ vector m_PointerStates;
+ vector m_ChaseStates;
public:
static CSpellLearn_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Client/Public/SpellLearn_Slot.h b/Jusin154_Team3D/Client/Public/SpellLearn_Slot.h
new file mode 100644
index 000000000..e9a1e3e56
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/SpellLearn_Slot.h
@@ -0,0 +1,58 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Engine)
+class CTexture;
+class CShader;
+class CVIBuffer_Rect;
+NS_END
+
+NS_BEGIN(Client)
+
+class CSpellLearn_Slot final : public CElementObject
+{
+private:
+ CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Slot(const CSpellLearn_Slot& rhs);
+ virtual ~CSpellLearn_Slot() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Clear();
+
+private:
+ void SizeUp(_float fSizeX);
+private:
+ CInfoInstance* m_pInfoInstance = { nullptr };
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
+public:
+ static CSpellLearn_Slot* 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
diff --git a/Jusin154_Team3D/Client/Public/TransformationSide.h b/Jusin154_Team3D/Client/Public/TransformationSide.h
new file mode 100644
index 000000000..bef7119b1
--- /dev/null
+++ b/Jusin154_Team3D/Client/Public/TransformationSide.h
@@ -0,0 +1,53 @@
+#pragma once
+
+#include "Client_Define.h"
+#include "Effect_Container.h"
+
+NS_BEGIN(Engine)
+NS_END
+
+NS_BEGIN(Client)
+
+class CTransformationSide final : public CEffect_Container
+{
+private:
+ CTransformationSide(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CTransformationSide(const CTransformationSide& rhs);
+ virtual ~CTransformationSide() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta) override;
+ virtual void Update(_float fTimeDelta) override;
+ virtual void Late_Update(_float fTimeDelta) override;
+
+public:
+ virtual HRESULT Pre_Setting(CGameObject* pObject, void* pArg = nullptr) override;
+
+private:
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ HRESULT Ready_Child();
+ HRESULT Bind_ShaderResources() override;
+ virtual void OnCollision(CGameObject* pOther = nullptr, void* pDesc = nullptr) override;
+private:
+ _wstring m_wstrEffectName = {};
+
+ _bool m_isParticleEnd = {};
+ _bool m_isTrailEnd = {};
+ _float4x4 m_TrailStopMat = {};
+
+ class CEffectParts* m_pWandLight = { nullptr };
+ class CTrailObject* m_pWandTrail = { nullptr };
+ //class CEffectParts* m_pWandParticle = { nullptr };
+
+public:
+ static CTransformationSide* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual void Free() override;
+ CGameObject* Clone(void* pArg, CGameObject* pOwner) override;
+#ifdef _DEBUG
+ void Describe_Entity() override;
+#endif // _DEBUG
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin
new file mode 100644
index 000000000..48aa01b97
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Avadakedavra/Ray_G.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7d1d85c3bb75546c0c59afde85c1751fbcd9faef5abcf1dc1868a47674fd471a
+size 1078
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Trail_G.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Trail_G.trail
new file mode 100644
index 000000000..cdd5389f2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Trail_G.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/WandParticle0.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/WandParticle0.bin
new file mode 100644
index 000000000..ce5de9e36
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/WandParticle0.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b8b8b7d4bc0598ea8618e16bc71bbc660d641eca48a035f0486d8547e08fefa8
+size 1085
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Goo.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Goo.bin
new file mode 100644
index 000000000..1e09be30a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Goo.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9951e8148f2ca268d23142063b4a684fb2f2e7535b238d156b27891103453c7d
+size 1075
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin
new file mode 100644
index 000000000..dcbb6c785
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/AvadakedavraSide/Wand_Light_G.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b522c198bcfda14ba8cd89b33003f5862d7bf09287483fd15bc98022eacdbd2a
+size 1033
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin
index a1f6e759a..4a53b8263 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:3bd05cdd2e2bf977bd5a3dc383e942c42b17d7a811e17fad58d61a5c664be1ca
+oid sha256:928920916857d5a1746c1759b06eab37d376faae41a3e849eff0ce68ee1a2db7
size 1144
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin
index 72d6f0525..c719df431 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Blink/Blink_Circle2.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:61e76c76d41190974322470279f994bafe797060ca88967996bbfe35fceee858
+oid sha256:c9c1d39c9d61598af9ad9ef73e41208a3c6f239a699bf45179a2ece45c6a7880
size 1144
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin
index 129bd3234..c424333ac 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/JapSideEffect/WandParticle1.bin
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:16513283c2d71d8edab2389f6fd696ad9e9d38e47829c7e270ade42fc0976bcc
-size 1066
+oid sha256:e5f71bd7f090d4c15f09b60e2154055bd88fdb7464207bf0b2f8e66c95da7aee
+size 1088
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/TransformationSide.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/TransformationSide.bin
new file mode 100644
index 000000000..82dc8f3cc
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/TransformationSide.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dce1ea2299c56e0b0011df8f093124b66ab8d8f41d7ed8b6257427a3a274d972
+size 215
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail
new file mode 100644
index 000000000..17458e0ca
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Trail_Y.trail differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Wand_Light_B.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Wand_Light_B.bin
new file mode 100644
index 000000000..e70fefe30
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Wand_Light_B.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cd48ea64966047d5c02a93fdc057661c86e7fd0eaf3462ca943dbac92505cae8
+size 1033
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Wand_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Wand_PT.bin
new file mode 100644
index 000000000..55ec3cbf6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/TransformationSide/Wand_PT.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:031c51dde84835be22080bdc820e9cc7fcd31421dbdae947f6248bf2d2130b91
+size 1108
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml
index f53f3af51..e215c11bb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/RanrokPos/RanrokPos.xml
@@ -65,65 +65,36 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml
index a5a168e36..920bb4764 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/UI/SpellLearn.xml
@@ -1,28 +1,256 @@
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
@@ -87,9 +315,60 @@
-
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -158,7 +437,58 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -244,10 +574,58 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_FlatDome.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_FlatDome.001.bin
new file mode 100644
index 000000000..17acaa471
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_FlatDome.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d753904e4e1acd850dac7b161e08b74dc99b0e03da13d1b6476881f4212c732a
+size 5820
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_FlatDome.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_FlatDome.001.fbx
new file mode 100644
index 000000000..3654b299e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_FlatDome.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:de96f62b9f06e87ea57030c5bbc5bfba248ab93942d8f60cd7aada267c49dfd7
+size 16844
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GH_LightShield.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GH_LightShield.001.bin
new file mode 100644
index 000000000..8654cb094
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GH_LightShield.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d3bef1dd4afaa0b22bc659c2106d0a2645ae703a078092f8fedc1fd08fdf54df
+size 6330
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GH_LightShield.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GH_LightShield.001.fbx
new file mode 100644
index 000000000..c0da5224c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GH_LightShield.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5ddc53753cc1afed6e0d9cf76c3f866978ce9ad7b8db1f7c8090307eaca7a344
+size 17052
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GlowBall.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GlowBall.001.bin
new file mode 100644
index 000000000..53b96cce9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GlowBall.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3feaa457706ab820fdc2c0a52604cfa6470d7efa86cb6bf38fafde90ae30e250
+size 15228
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GlowBall.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GlowBall.001.fbx
new file mode 100644
index 000000000..0bcd86d23
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_GlowBall.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:11fe22ad95ae321bb7549749d223284c252048e3b14c44a874c48a97f29ea9b2
+size 19132
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar.001.bin
new file mode 100644
index 000000000..d6939fdda
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf65076db0e78602464ba3fd3899150922f3190791055ae24d90b1da8be76d1d
+size 4456
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar.001.fbx
new file mode 100644
index 000000000..8b1b5d055
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9667ccd8f3ed2bfe67a0445e120598fb397071c98237c668ae534126bdab55c4
+size 19052
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar_NoSides.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar_NoSides.001.bin
new file mode 100644
index 000000000..fd6094c4b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar_NoSides.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a1ff6938c63f078ae6fda6e5dc285efc4ca5bf27f4975fe9e60d5206ab379d2e
+size 3618
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar_NoSides.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar_NoSides.001.fbx
new file mode 100644
index 000000000..5a72827c2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightPillar_NoSides.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1624d56b9b347bec84f56260f5da3bb211b8a695ffef9ef92fe7ec96f63fd008
+size 16748
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay.001.bin
new file mode 100644
index 000000000..15a5a0da4
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:933d44a4ce19997f02ae073ea125afe373bf4ff2526380f30fcf4964ce0bfd65
+size 3172
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay.001.fbx
new file mode 100644
index 000000000..2e521574e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5c999dc8eee8621f99f01de12a4490ff0feaf58e4ae9f93ef9957d30f1ad2aac
+size 15900
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_2Card.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_2Card.001.bin
new file mode 100644
index 000000000..294192e30
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_2Card.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:304c440cf5b3cd94407f4346293ee7be041d791252910372f1b3350bc9675324
+size 826
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_2Card.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_2Card.001.fbx
new file mode 100644
index 000000000..f2fc8c753
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_2Card.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:820f1a85a004348809096ea6e23e53fd5b6c3813cbb91e45371a89740cecd7da
+size 15612
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_Cone.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_Cone.001.bin
new file mode 100644
index 000000000..aef5fa7f3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_Cone.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:51a01e03595d07347d968bb7c3a9eaf8c2032852b3e90cc2f33a2489b2b0995d
+size 825
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_Cone.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_Cone.001.fbx
new file mode 100644
index 000000000..d4586bd42
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_LightRay_Cone.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:69f63cac8f8f6ef9da69bc7b88e10671559c8c6888effa1a32c5730e70dc4b38
+size 15628
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwipe.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwipe.001.bin
new file mode 100644
index 000000000..8e8650208
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwipe.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a32095232de3f02983f5bf697c7d2ecbccb8b47c3ed5f2e1ac7cd81448c60931
+size 25345
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwipe.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwipe.001.fbx
new file mode 100644
index 000000000..cb475b314
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwipe.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:378c7b153f8349908beadf5504aedee56daab6f65432c9f133d9813f3dcad340
+size 27932
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwirl.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwirl.001.bin
new file mode 100644
index 000000000..5068d7a63
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwirl.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:83d3b8aa85d42347b9be37dd9154e74c7a00401ef0df03827ee1b136f3d28255
+size 33505
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwirl.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwirl.001.fbx
new file mode 100644
index 000000000..14c286926
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshSwirl.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a7f5f32c1e0273cfb948f6a80bbf88aff1b51988cbc8c310dc7f49ad93aa071f
+size 31724
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshWipe.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshWipe.001.bin
new file mode 100644
index 000000000..4a0d3c2c8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshWipe.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:61f5c76a1eac09234a23008bc80085fdfe1943ac4dffb175fd3cc3a24a7323a1
+size 14760
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshWipe.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshWipe.001.fbx
new file mode 100644
index 000000000..1a6a82360
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_MeshWipe.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:80cfaba887998a3145b877a563b2fde5954d32827533878068e42160183463cc
+size 21820
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Paper_Curled.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Paper_Curled.001.bin
new file mode 100644
index 000000000..1111356f6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Paper_Curled.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:03c0067f9f67ae8d1ab66b87128b681b6936f391e5ddb0f5ca53255feecf8101
+size 39984
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Paper_Curled.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Paper_Curled.001.fbx
new file mode 100644
index 000000000..68deab6cb
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Paper_Curled.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fd1005cb56fa23dce9eb03dcde675fa0a446fc57fbd6f08b97274306689035f2
+size 34316
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Prime_Shockwave.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Prime_Shockwave.001.bin
new file mode 100644
index 000000000..d89748fdc
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Prime_Shockwave.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dec527edbc71a8a72f945e6e5c7b5cb7b2566b583d000222266c336b76de9f33
+size 52531
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Prime_Shockwave.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Prime_Shockwave.001.fbx
new file mode 100644
index 000000000..ac33eb3fe
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Prime_Shockwave.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:80382cafb465269fad44ec82d25140a46529d0ce9ab45a736acb0edd11ac367f
+size 42716
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Ray.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Ray.001.bin
new file mode 100644
index 000000000..15c51da09
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Ray.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:516b5d0139b818572272b3c5d77432ff34c8718c7bbb7055dff428d3733740a7
+size 423
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Ray.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Ray.001.fbx
new file mode 100644
index 000000000..ada7046d6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_Ray.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a11fa3613cb44a837dfa376903d22e367ecc923ee11efba371b6b1a7de2254b3
+size 15420
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RepositoryControlPointCore_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RepositoryControlPointCore_01.001.bin
new file mode 100644
index 000000000..03b9c20b1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RepositoryControlPointCore_01.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c48dd1fc8bcfdc1aef480aa73f112698b5db0211dffc375af302c5d5ea19ab8a
+size 238062
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RepositoryControlPointCore_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RepositoryControlPointCore_01.001.fbx
new file mode 100644
index 000000000..cac9a2347
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_RepositoryControlPointCore_01.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:06912deb288ee108c94b01c62076a3e883f6d84c57e553ece56383f11f0f9080
+size 103788
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashBase_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashBase_01.001.bin
new file mode 100644
index 000000000..680e25ac3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashBase_01.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fbb4354d1842d78e33f41c2e3ad825d9c20a19d8d6e29d48ceef7edcf66e595c
+size 425781
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashBase_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashBase_01.001.fbx
new file mode 100644
index 000000000..d452625aa
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashBase_01.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6f242621fe0b34a8daf3e7e86ed4d33a7ba5616dac4689353f731bb22c1e1684
+size 117836
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashDisc.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashDisc.001.bin
new file mode 100644
index 000000000..ca759ef48
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashDisc.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:070673501f4b0b43139c7b387d78897a6e79686b080cb2317a302fb8961c44a4
+size 46050
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashDisc.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashDisc.001.fbx
new file mode 100644
index 000000000..f5b89a47a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashDisc.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:f22978d2b9872ac89b012a479a569c13f04390b1731427235e952664475f31fb
+size 33996
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02.001.bin
new file mode 100644
index 000000000..bb24a1c23
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a7d5b4a2287dd7694d1ea6d0e03b1072bb60ffbb3e78b20d7288840b0abd4ef3
+size 590929
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02.001.fbx
new file mode 100644
index 000000000..0d33fa16c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6a75db8847cc781ecfdbfb00c6368556a8cc16db912fad4fca55e7af91ea91fb
+size 236332
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02bLow.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02bLow.001.bin
new file mode 100644
index 000000000..8cf507134
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02bLow.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1327d4cdd35cc7f64749d37bcf50f9fbc95095f8737c957757041904913ed778
+size 121665
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02bLow.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02bLow.001.fbx
new file mode 100644
index 000000000..6e457f985
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_SplashMesh_02bLow.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c961372bb06af9727792d68cf84846a38cc522e9f09e4189d0584153246179f2
+size 55676
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_TornadoCone_B.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_TornadoCone_B.001.bin
new file mode 100644
index 000000000..08e536552
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_TornadoCone_B.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:45da1e713b26f87b3a5592c8ace48f638155540097867a73c71a8d7f3cf45a12
+size 86393
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_TornadoCone_B.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_TornadoCone_B.001.fbx
new file mode 100644
index 000000000..56aaf398f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/NomalMesh/VFX_SM_TornadoCone_B.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6648bd377c03ef136bb91d1572344d3a0b4aa47c5fb30f1334eec586376ca026
+size 54236
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_CircleSegment_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_CircleSegment_1m.001.bin
new file mode 100644
index 000000000..5dadd11de
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_CircleSegment_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b3e34706c0386660337a11608ca0f5ccc488f4937a7d41ec3de5c537a013d770
+size 13346
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_CircleSegment_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_CircleSegment_1m.001.fbx
new file mode 100644
index 000000000..a6e79a149
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_CircleSegment_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9d1500ca2604a8a08fd634159764fe8f23513119f873cd3507b9a079659e36e5
+size 18860
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SpiralB_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SpiralB_1m.001.bin
new file mode 100644
index 000000000..73ebffe4c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SpiralB_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:fa7b65c6b81df87270d9cdd954a324139df047fd07652f75bccc5b38a19ff48f
+size 24780
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SpiralB_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SpiralB_1m.001.fbx
new file mode 100644
index 000000000..1dd032015
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SpiralB_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:494dbd2c1c0dce52b75036ef06037a92815e90d952fa971461614c8dc7b4ba80
+size 27148
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Streak_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Streak_1m.001.bin
new file mode 100644
index 000000000..5d0db23a9
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Streak_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:430077e0807bd75e915f3cf999f70012d860869e7eeed44837a29df56ddf4722
+size 10843
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Streak_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Streak_1m.001.fbx
new file mode 100644
index 000000000..e14bcc340
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Streak_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a027b8bb082b51d36ca43219313706342917a9b84b0a23a725336f648959e176
+size 20716
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_01.001.bin
new file mode 100644
index 000000000..97efbd6d2
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_01.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1fad85e6258301d837a285c6af19fbbbe0307010b6fcce68e44743b460eb47d7
+size 8146
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_01.001.fbx
new file mode 100644
index 000000000..e9bbd7fae
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_01.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dafeda1a5066c85cb082ca28debcbc4c69a9987b68e1b12028e8ca78441e6af1
+size 18044
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_02.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_02.001.bin
new file mode 100644
index 000000000..ac02a8826
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_02.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:d623bf4b9226b6a413b15e47b8c06106153e374000b75c0544e461da035b198f
+size 6274
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_02.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_02.001.fbx
new file mode 100644
index 000000000..de8a3ba5e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlatWisp_02.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7bb550fc5d1dc2250da9944cd0c0a48d529faefcc9257cdddd17787651323da4
+size 17388
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlat_01.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlat_01.001.bin
new file mode 100644
index 000000000..ac20e8fc6
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlat_01.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c720d421633706aa4870b95b46b097aa99dcb275bd76d9fbb65d343c755f0d19
+size 21454
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlat_01.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlat_01.001.fbx
new file mode 100644
index 000000000..187aa8daa
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_SwirlFlat_01.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4360cf4c4992bd337e49a422348d11a844a22aa63000d9bc05c3180a37d3e88a
+size 23148
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Swirl_XAxis_01_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Swirl_XAxis_01_1m.001.bin
new file mode 100644
index 000000000..93e22b3eb
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Swirl_XAxis_01_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:b334747831e8d39c0a667bae2aa92446bc21c472627f9f37151b2cecbf14d998
+size 22291
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Swirl_XAxis_01_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Swirl_XAxis_01_1m.001.fbx
new file mode 100644
index 000000000..80471ba5c
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SK_SplineThicken_Swirl_XAxis_01_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:42b11c669526315394781cd7c174575a5a26092b1e4b02efdf251716f65d437f
+size 26060
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStreamB_1m.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStreamB_1m.002.bin
new file mode 100644
index 000000000..61c884e7b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStreamB_1m.002.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7ff0f311f88fb2174180a3663a9acbca7fe8e6cc330358290611a302e5b1718a
+size 14973
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStreamB_1m.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStreamB_1m.002.fbx
new file mode 100644
index 000000000..18c020325
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStreamB_1m.002.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:cf8b60088780bca66349a7287c4657a5d1420fd125feaa040a76814bd6013bc6
+size 19100
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStream_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStream_1m.001.bin
new file mode 100644
index 000000000..deaadbb5a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStream_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a6b212b00a7b8b9e7e335937be6959b9f9d7ee53fb0c9a516a3e606a5fbad9bd
+size 22756
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStream_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStream_1m.001.fbx
new file mode 100644
index 000000000..f75e0cc69
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeStream_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5cc8958a274dbefb10f8d3fbedf1aec3fc1f619503e6240a4208f63512b551ab
+size 20860
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeWisp_1m.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeWisp_1m.002.bin
new file mode 100644
index 000000000..aa996f5d8
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeWisp_1m.002.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:029c39b74c99ac5d74f03993ae79733ed1ebd75aac27afa6bb5abecddb7ad444
+size 24422
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeWisp_1m.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeWisp_1m.002.fbx
new file mode 100644
index 000000000..298706421
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SmokeWisp_1m.002.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:56d3376999485bb60c9c98bc4784fd48bc56fd379b5ce0be02daaee95b455990
+size 24140
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiral360_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiral360_1m.001.bin
new file mode 100644
index 000000000..39ac95609
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiral360_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:35636358e99bb1548e586e704aacb8251c791fc66fa292f005cb96fcf8f90965
+size 27694
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiral360_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiral360_1m.001.fbx
new file mode 100644
index 000000000..f7d8474c7
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiral360_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9fb8cd119c69c560ac7589faa66782ecf13fe0e7aaaa923225674db3e180ad9c
+size 27596
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiralx3_1m.001.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiralx3_1m.001.bin
new file mode 100644
index 000000000..9c27e9a56
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiralx3_1m.001.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:474da457a24a1841f9d36133fbc251e2fd0b246efe79d16c7af7eea8e8334543
+size 79277
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiralx3_1m.001.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiralx3_1m.001.fbx
new file mode 100644
index 000000000..57321b297
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_Spiralx3_1m.001.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a23b3473dc0ab7aeef0ee073188860a9533106dbf9f7343312dd504bf815827
+size 50492
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundA_1m.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundA_1m.002.bin
new file mode 100644
index 000000000..c02f2380b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundA_1m.002.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:7a8abe81dd19971fc30038048bbd234ff4d8e66b8ff7cd357638dc06662e29ee
+size 37473
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundA_1m.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundA_1m.002.fbx
new file mode 100644
index 000000000..dd5e8a17e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundA_1m.002.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:12a14006593bded10edad21f72bd4c9a7897dcef7d1501fa413df42fe7fa7b40
+size 32748
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundB_1m.002.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundB_1m.002.bin
new file mode 100644
index 000000000..fc0c89774
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundB_1m.002.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:84693d67968b7fcad2cb64f368f85f45082ca643dc0527e45877eea8f3a0018f
+size 93633
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundB_1m.002.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundB_1m.002.fbx
new file mode 100644
index 000000000..40c22c426
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Effect/Spline/VFX_SM_SplineThicken_SwirlAroundB_1m.002.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:db86c61e9b52798b52ef3e609dac864c2d7c99cbf61b29d88ba5f33d8c4d9be0
+size 56668
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/BaseFlattenNormalMap.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/BaseFlattenNormalMap.png
new file mode 100644
index 000000000..d8e1fd944
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/BaseFlattenNormalMap.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/EleazarFig.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/EleazarFig.xml
new file mode 100644
index 000000000..b9e85f8d1
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/EleazarFig.xml
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_DefaultGrey_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_DefaultGrey_D.png
new file mode 100644
index 000000000..b414d5691
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_DefaultGrey_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Eye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Eye_Iris_D.png
new file mode 100644
index 000000000..4bf9d62f9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Eye_Iris_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_D.dds
new file mode 100644
index 000000000..24effbef3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_N.dds
new file mode 100644
index 000000000..4d226e763
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_SRXO.dds
new file mode 100644
index 000000000..a404651ed
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_Head_Teeth_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_Fig_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_Fig_D.png
new file mode 100644
index 000000000..86219e012
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_Fig_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_N.dds
new file mode 100644
index 000000000..020053e70
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld01_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld0_Fig_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld0_Fig_SRXO.dds
new file mode 100644
index 000000000..70ba29604
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_HUM_M_Body_ArmsOld0_Fig_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_DAO_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_DAO_MSK.dds
new file mode 100644
index 000000000..a746343df
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_DAO_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_THV_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_THV_MSK.dds
new file mode 100644
index 000000000..576607f3e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Old_M_Hair_Fig_THV_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_A.dds
new file mode 100644
index 000000000..ac3f1439d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_I.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_I.png
new file mode 100644
index 000000000..98e87023a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_I.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_IB.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_IB.dds
new file mode 100644
index 000000000..54a2975e6
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_IB.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_N.dds
new file mode 100644
index 000000000..79e7ecc96
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_SRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_SRO.dds
new file mode 100644
index 000000000..3e28dd9d9
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazaFig_SRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Lower_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Lower_MSK.dds
new file mode 100644
index 000000000..baf6afa78
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Lower_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Upper_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Upper_MSK.dds
new file mode 100644
index 000000000..afad3582e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Clothes_Fig_Upper_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_D.dds
new file mode 100644
index 000000000..7d916b4ab
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_D.dds
new file mode 100644
index 000000000..361af9a7c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_N.dds
new file mode 100644
index 000000000..8c9b522f3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_SRXO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_SRXO.dds
new file mode 100644
index 000000000..248c4e41d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Head_SRXO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_D.dds
new file mode 100644
index 000000000..b73a56e1e
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_MRO.dds
new file mode 100644
index 000000000..e970db79d
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_N.dds
new file mode 100644
index 000000000..8371f50a5
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Lower_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_MRO.dds
new file mode 100644
index 000000000..9aa0066e7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_N.dds
new file mode 100644
index 000000000..708dbc848
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Wind_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Wind_MSK.dds
new file mode 100644
index 000000000..db303cea4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/EleazarFig/T_Professor_EleazarFig_Wind_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Protego.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Protego.bin
new file mode 100644
index 000000000..6a24ee575
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Protego.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:9383d9067bcffc14a81079ad23fb29e65138375d9e8194dfbfb0ccc12686c967
+size 3303920
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Protego.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Protego.fbx
new file mode 100644
index 000000000..972e9f8f3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Protego.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:864c72570fb9a4965db5146c9ea95126ae94f509a97908d635bdb42372087b6c
+size 5196508
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spell_Learning.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spell_Learning.bin
new file mode 100644
index 000000000..76c26b5c3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spell_Learning.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e8fc748052ad20dc2bc016c03741518137950f8710a2983085e4b0b08ccdf290
+size 3924833
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spell_Learning.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spell_Learning.fbx
new file mode 100644
index 000000000..5fdc5f653
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/Npc_Spell_Learning.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:599df3fb03af92806ff0eb5038271b019e845851b92bcd3ce31a3bc35ba23ce5
+size 4067788
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin
new file mode 100644
index 000000000..464d8d521
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:4a7bc2755dd5fd8440f2acf4ea4a59f9042e30882237691599e5d6ff27559161
+size 33366375
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.fbx
new file mode 100644
index 000000000..b03574243
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:6b205034cef08ac10bab09aefd5a276691236401d0337363b5b9842f0324d3d0
+size 60748076
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.xml b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.xml
new file mode 100644
index 000000000..b82a6a608
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.xml
@@ -0,0 +1,234 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin
new file mode 100644
index 000000000..d1fc13983
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.bin
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:1bb288217aae1334cd223e1a0e90918e447f7f3438fd9a26efcc802db9e7820a
+size 128977083
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.fbx b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.fbx
new file mode 100644
index 000000000..67e648a8f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon_Anim.fbx
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:60b4cf37b01242822d6cf9de693c64c94b28467be9d50cd43fb883202aa01a52
+size 186213084
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/Good64x64TilingNoiseHighFreq.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/Good64x64TilingNoiseHighFreq.png
new file mode 100644
index 000000000..dd63cc9d7
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/Good64x64TilingNoiseHighFreq.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Base011_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Base011_MRO.dds
new file mode 100644
index 000000000..0d400fefe
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Base011_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Blank_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Blank_A.dds
new file mode 100644
index 000000000..d02c5d8e2
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Blank_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Cav_Spid_ThickWeb_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Cav_Spid_ThickWeb_N.dds
new file mode 100644
index 000000000..4a77ba948
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Cav_Spid_ThickWeb_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ColorNoise512_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ColorNoise512_D.png
new file mode 100644
index 000000000..c20422c41
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ColorNoise512_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_D.dds
new file mode 100644
index 000000000..fe2a81196
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MRO.dds
new file mode 100644
index 000000000..0039d9606
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MSK.dds
new file mode 100644
index 000000000..cabad19bb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_N.dds
new file mode 100644
index 000000000..19ff15405
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Body_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_D.dds
new file mode 100644
index 000000000..b9d4dfb8f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MRO.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MRO.dds
new file mode 100644
index 000000000..8bd817f14
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MRO.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MSK.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MSK.dds
new file mode 100644
index 000000000..6a1a899c3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_MSK.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_N.dds
new file mode 100644
index 000000000..1911e3bf3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_ConjuredDragon_Wings_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_CorruptedSpider_Eye_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_CorruptedSpider_Eye_D.dds
new file mode 100644
index 000000000..85e252a4f
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_CorruptedSpider_Eye_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_DragonEye_Iris_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_DragonEye_Iris_D.png
new file mode 100644
index 000000000..059dcf656
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_DragonEye_Iris_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Forageable_Horklump_Gradient_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Forageable_Horklump_Gradient_D.png
new file mode 100644
index 000000000..dc7dc8c70
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_Forageable_Horklump_Gradient_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_GlassNoise_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_GlassNoise_D.dds
new file mode 100644
index 000000000..077312fd4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_GlassNoise_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_WaterCaustics_Disorder_A.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_WaterCaustics_Disorder_A.dds
new file mode 100644
index 000000000..f5f05435a
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/T_WaterCaustics_Disorder_A.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_CausticNoise_C_Seamless_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_CausticNoise_C_Seamless_D.png
new file mode 100644
index 000000000..2c3d57910
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_CausticNoise_C_Seamless_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_ConjuredDragonWing_M.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_ConjuredDragonWing_M.dds
new file mode 100644
index 000000000..a0efacb20
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_ConjuredDragonWing_M.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_E.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_E.png
new file mode 100644
index 000000000..fb634dc66
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_E.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_N.dds
new file mode 100644
index 000000000..a245fa9fb
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_GooBlob_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_MarbleSkin_01_BPF_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_MarbleSkin_01_BPF_D.dds
new file mode 100644
index 000000000..1ff91f3a4
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_MarbleSkin_01_BPF_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_Noise05_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_Noise05_D.dds
new file mode 100644
index 000000000..f3ebdd976
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_Noise05_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_UpperAlpha_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_UpperAlpha_E.dds
new file mode 100644
index 000000000..81e618163
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_UpperAlpha_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_Upper_E.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_Upper_E.dds
new file mode 100644
index 000000000..4b8533472
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RanrakDragon_Upper_E.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RibbonOffset_N.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RibbonOffset_N.dds
new file mode 100644
index 000000000..64b67efe3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_RibbonOffset_N.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_VerticalBeam_D.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_VerticalBeam_D.dds
new file mode 100644
index 000000000..c90844d1c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/VFX_T_VerticalBeam_D.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_black_d.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_black_d.png
new file mode 100644
index 000000000..835a85b64
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_black_d.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_flat_n.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_flat_n.dds
new file mode 100644
index 000000000..f80bb9b11
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_flat_n.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_white_d.dds b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_white_d.dds
new file mode 100644
index 000000000..4ee349fa0
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/base_white_d.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Pink.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Pink.png
new file mode 100644
index 000000000..1e1e56a54
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Pink.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Red.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Red.png
new file mode 100644
index 000000000..8b6954504
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Red.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Yellow.png b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Yellow.png
new file mode 100644
index 000000000..453e872d3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Models/Monster/ConjuredDragon/drp_fire_Yellow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 444f13d38..fb7ab27eb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -190,6 +190,51 @@ PBR_LIGHT_OUT PBR_Lighting(
return Out;
}
+bool CalcLighting(
+ in Texture2D SurfaceTexture2D,
+ in float fTagDepthBlue,
+ in float2 uv,
+ in float3 vAlbedo,
+ inout float3 vF0,
+ inout float fMetallic,
+ inout float fRoughness,
+ inout float fOcclusion,
+ inout float fAttenuation)
+{
+ bool bResult = false;
+ if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
+ {
+ bResult = true;
+ float3 vMRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ fMetallic = vMRO.r;
+ fRoughness = vMRO.g;
+ fOcclusion = vMRO.b;
+
+ vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float3 vSRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ vF0 = vSRO.rrr;
+ fRoughness = vSRO.g;
+ fOcclusion = vSRO.b;
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY)) // Specular Roughness SubSurfaceScattering Occlusion
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float4 vSRXO = SurfaceTexture2D.Sample(DefaultSampler, uv);
+ vF0 = vSRXO.rrr;
+ fRoughness = vSRXO.g;
+ fOcclusion = vSRXO.a;
+ }
+ return bResult;
+}
+
float GetBloomCurve(float x, float fThreshold, uint iMethod)
{
float fResult = x;
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index 05ce2cc23..4a596b98f 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -455,42 +455,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
-
-
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
- {
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 디렉셔널
@@ -569,37 +541,10 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
@@ -697,40 +642,14 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
fSpotAttenenuation *= fSpotAttenenuation;
fAttenuation *= fSpotAttenenuation;
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 점광원
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl
index 120ade77d..4a1c9a8a7 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl
@@ -11,7 +11,6 @@ float4x4 g_WorldMatrix, g_ViewMatrix, g_ProjMatrix;
float4x4 g_PrevWorldMatrix, g_PrevViewMatrix, g_PrevProjMatrix;
matrix g_OffsetMatrix[256];
-
int g_bRimLight;
int g_bUseNormalMap;
int g_bDisolve;
@@ -24,41 +23,41 @@ float g_fOutLineScale;
float g_fOutLineThickness;
float g_fOutLinePower;
float g_fUsingSurfaceParams;
+float g_fEtherealRatio;
-Texture2D g_DiffuseTexture;
-Texture2D g_SpecularTexture;
-Texture2D g_AmbientTexture;
-Texture2D g_EmissiveTexture;
-Texture2D g_HeightTexture;
-Texture2D g_NormalTexture;
-Texture2D g_ShininessTexture;
-Texture2D g_OpacityTexture;
-Texture2D g_DisplacementTexture;
-Texture2D g_LightMapTexture;
-Texture2D g_ReflectionTexture;
-Texture2D g_BaseColorTexture;
-Texture2D g_NormalCameraTexture;
-Texture2D g_EmissionColorTexture;
-Texture2D g_MetalnessTexture;
-Texture2D g_Diffuse_RoughnessTexture;
-Texture2D g_AmbientOcclusionTexture;
-Texture2D g_UnknownTexture;
-Texture2D g_SheenTexture;
-Texture2D g_ClearcoadTexture;
-Texture2D g_TransmissionTexture;
-Texture2D g_Maya_BaseTexture;
-Texture2D g_Maya_SpecularTexture;
-Texture2D g_Maya_Specular_ColorTexture;
-Texture2D g_Maya_Specular_RoughnessTexture;
-Texture2D g_AnisotropyTexture;
+Texture2D g_DiffuseTexture : register(t00);
+Texture2D g_SpecularTexture : register(t01);
+Texture2D g_AmbientTexture : register(t02);
+Texture2D g_EmissiveTexture : register(t03);
+Texture2D g_HeightTexture : register(t04);
+Texture2D g_NormalTexture : register(t05);
+Texture2D g_ShininessTexture : register(t06);
+Texture2D g_NormalBlendTexture : register(t07);
+Texture2D g_SROBlendTexture : register(t08);
+Texture2D g_LightMapTexture : register(t09);
+Texture2D g_ReflectionTexture : register(t10);
+Texture2D g_DiffuseBlend : register(t11);
+Texture2D g_NormalCameraTexture : register(t12);
+Texture2D g_EmissionColorTexture : register(t13);
+Texture2D g_MetalnessTexture : register(t14);
+Texture2D g_Diffuse_RoughnessTexture : register(t15);
+Texture2D g_AmbientOcclusionTexture : register(t16);
+Texture2D g_UnknownTexture : register(t17);
+Texture2D g_SheenTexture : register(t18);
+Texture2D g_ClearcoadTexture : register(t19);
+Texture2D g_TransmissionTexture : register(t20);
+Texture2D g_Maya_BaseTexture : register(t21);
+Texture2D g_Maya_SpecularTexture : register(t22);
+Texture2D g_Maya_Specular_ColorTexture : register(t23);
+Texture2D g_Maya_Specular_RoughnessTexture : register(t24);
+Texture2D g_AnisotropyTexture : register(t25);
-StructuredBuffer g_BoneBuffer : register(t26);
-StructuredBuffer g_PrevBoneBuffer : register(t27);
+StructuredBuffer g_BoneBuffer : register(t26);
+StructuredBuffer g_PrevBoneBuffer : register(t27);
Texture2D g_SurfaceParamsTexture;
-
int g_iBinded_Texture[27];
matrix g_BoneMatrices[512];
@@ -126,23 +125,23 @@ VS_OUT VS_MAIN(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
@@ -180,23 +179,23 @@ VS_OUT VS_MAIN_OUTLINE_READ(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
@@ -243,13 +242,13 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
@@ -284,6 +283,14 @@ struct PS_OUT
float4 vSurface : SV_Target4;
float2 vVelocityUV : SV_TARGET5;
};
+
+struct PS_OUT_BLEND
+{
+ float4 vAlbedo : SV_TARGET0;
+ //float4 vNormal : SV_TARGET1;
+ //float4 vDepth : SV_TARGET2;
+ //float2 vVelocityUV : SV_TARGET3;
+};
struct PS_OUT_OUTLINE
{
float4 vOutLine : SV_TARGET0;
@@ -309,9 +316,9 @@ PS_OUT_OUTLINE PS_MAIN_OUTLINE_READ(PS_IN In)
Out.vOutLine = float4(g_vOutLineColor.rgb, fRim);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (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);
@@ -335,7 +342,7 @@ PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In)
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vTHV_Mask = g_SROBlendTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
@@ -347,13 +354,14 @@ PS_OUT PS_EYELASH_DAOTHV_ToSRO(PS_IN In)
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
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);
return Out;
}
@@ -375,12 +383,13 @@ PS_OUT PS_TEETH_SRXO_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// SRO
return Out;
}
@@ -401,12 +410,13 @@ PS_OUT PS_EYE_DN_SRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// SRO
return Out;
}
@@ -437,7 +447,7 @@ PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In)
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vTHV_Mask = g_SROBlendTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
@@ -449,13 +459,14 @@ PS_OUT PS_FACIAL_HAIR_DAOTHV_ToSRO(PS_IN In)
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
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);
return Out;
}
@@ -478,7 +489,7 @@ PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In)
float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
- float4 vTHV_Mask = g_DisplacementTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vTHV_Mask = g_SROBlendTexture.Sample(DefaultSampler, In.vTexcoord);
float RootTip = vTHV_Mask.r;
float SpecMask = vTHV_Mask.g;
float AoMask_Thv = vTHV_Mask.b;
@@ -490,13 +501,14 @@ PS_OUT PS_HEAD_HAIR_DAOTHV_ToSRO(PS_IN In)
Out.vAlbedo = float4(fDiffuseMask, fDiffuseMask, fDiffuseMask, AlphaMask);
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
1.f);
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);
return Out;
}
@@ -517,12 +529,13 @@ PS_OUT PS_HEADwtHAND_DSRXON_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// SRO
return Out;
}
@@ -544,12 +557,13 @@ PS_OUT PS_LOWER_DSRON_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// SRO
return Out;
}
@@ -571,12 +585,13 @@ PS_OUT PS_UPPER_DMRON_ToMRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// MRO
return Out;
}
@@ -598,12 +613,13 @@ PS_OUT PS_GLASSES_DMRON_ToMRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// SRO
return Out;
}
@@ -626,12 +642,42 @@ PS_OUT PS_EmissiveMetalness_DENMRO_ToMRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
+ // SRO
+ return Out;
+}
+
+PS_OUT PS_DNMRO_ToMRO(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, In.vTexcoord);
+ vDiffuse.rgb += vEmissive.rgb;
+ if (vDiffuse.a < 0.2f) {
+ discard;
+ }
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float4 vMRO_Mask = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 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);
// SRO
return Out;
}
@@ -654,12 +700,48 @@ PS_OUT PS_MI_ClothSim_DSEN_ToSRO(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
+ // SRO
+ return Out;
+}
+
+PS_OUT PS_MI_DANSROMRO_ToSRO(PS_IN In)
+{
+ PS_OUT Out;
+
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vAlpha = g_TransmissionTexture.Sample(DefaultSampler, In.vTexcoord);
+ if (vAlpha.r < 0.2f)
+ {
+ discard;
+ }
+ vDiffuse.a = vAlpha.r;
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float4 vSRO_Mask = g_SpecularTexture.Sample(DefaultSampler, In.vTexcoord);
+ float4 vMRO_MASK = g_MetalnessTexture.Sample(DefaultSampler, In.vTexcoord);
+
+ float Roughness = saturate(vSRO_Mask.g * vMRO_MASK.g);
+
+ float Occlusion = saturate(vSRO_Mask.b * vMRO_MASK.b);
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_SPECULAR / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 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);
// SRO
return Out;
}
@@ -689,16 +771,148 @@ PS_OUT PS_Troll_Club_DAENMROSRXO_ToMROX(PS_IN In)
Out.vAlbedo = vDiffuse;
Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
- Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 깊이 ( 0~ 1)
- (In.vProjPos.w / g_fFar), // 뷰 스페이스 Z
- (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // 서페이스 파라미터
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
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);
// SRO
return Out;
}
+PS_OUT_BLEND PS_Dragon_Aura(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float2 uvOppacity = uv;
+ uvOppacity.y += g_fEtherealRatio;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uvOppacity).r;
+ vDiffuse = vDiffuse * (1 - fOppacity);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_EtherealEyes(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).a;
+ float4 vBaseColor = g_DiffuseBlend.Sample(DefaultSampler, uv);
+ //TODO ?덉븣 ???댁빞??
+ Out.vAlbedo = lerp(vDiffuse, vBaseColor, fOppacity);
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_EtherealWings(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float2 uvDiffuse = uv; uvDiffuse.y -= g_fEtherealRatio;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uvDiffuse);
+ float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, uv);
+ vDiffuse += vEmissive;
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uvDiffuse).a;
+ vDiffuse.a = (1- fOppacity);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT PS_Dragon_Body(PS_IN In)
+{
+ PS_OUT Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float fOppacity = g_NormalBlendTexture.Sample(DefaultSampler, uv).r;
+ vDiffuse.a = fOppacity;
+ if (vDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float3 vMRO = g_MetalnessTexture.Sample(DefaultSampler, uv).rgb;
+ float4 vMask = g_UnknownTexture.Sample(DefaultSampler, uv);
+
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 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);
+ // SRO
+ return Out;
+}
+
+PS_OUT PS_Dragon_Wings(PS_IN In)
+{
+ PS_OUT Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ float4 vEmissive = g_EmissiveTexture.Sample(DefaultSampler, uv);
+ vDiffuse += vEmissive;
+
+ if (vDiffuse.a < 0.2f)
+ {
+ discard;
+ }
+ float3 vNormalDecoded = DecodeNormalFromRG(g_NormalTexture, DefaultSampler, In.vTexcoord);
+ float3x3 WorldMatrix = float3x3(In.vTangent, In.vBinormal * -1.f, In.vNormal);
+ float3 vNormal = normalize(mul(vNormalDecoded, WorldMatrix));
+
+ float3 vMRO = g_MetalnessTexture.Sample(DefaultSampler, uv).rgb;
+ float4 vMask = g_UnknownTexture.Sample(DefaultSampler, uv);
+
+
+ Out.vAlbedo = vDiffuse;
+ Out.vNormal = float4(vNormal * 0.5f + 0.5f, 0.f);
+ Out.vDepth = float4((In.vProjPos.z / In.vProjPos.w), // NDC 源딆씠 ( 0~ 1)
+ (In.vProjPos.w / g_fFar), // 酉??ㅽ럹?댁뒪 Z
+ (float) AI_TEXTURE_TYPE_METALNESS / (float) AI_TEXTURE_TYPE_MAX, // ?쒗럹?댁뒪 ?뚮씪誘명꽣
+ 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);
+ // SRO
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_RedHot(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_PinkHot(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
+PS_OUT_BLEND PS_Dragon_YellowHot(PS_IN In)
+{
+ PS_OUT_BLEND Out;
+ float2 uv = In.vTexcoord;
+ float4 vDiffuse = g_DiffuseTexture.Sample(DefaultSampler, uv);
+ Out.vAlbedo = vDiffuse;
+ return Out;
+}
+
struct PS_IN_SHADOW
{
float4 vPosition : SV_POSITION;
@@ -903,4 +1117,131 @@ technique11 DefaultTechnique
PixelShader = compile ps_5_0 PS_MI_ClothSim_DSEN_ToSRO();
}
///////
+ pass MI_DANSROMRO_ToSRO // 20
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_MI_DANSROMRO_ToSRO();
+ }
+ pass MI_DANSROMRO_ToSRO_OUTLINE_WRITE // 21
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_MI_DANSROMRO_ToSRO();
+ }
+ pass DNMRO_ToMRO__OUTLINE_WRITE // 22
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_DNMRO_ToMRO();
+ }
+//// DRAGON
+ pass DragonAuraPass // 23
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_Aura();
+ }
+ pass DragonEtherealEyesPass // 24
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_EtherealEyes();
+ }
+ pass DragonEtherealEyes_OUTLINE_WRITEPass // 25
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_EtherealEyes();
+ }
+ pass DragonEtherealWingsPass // 26
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_EtherealWings();
+ }
+ pass DragonWingsPass // 27
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_Wings();
+ }
+ pass DragonWings_OUTLINE_WRITEPass // 28
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_Wings();
+ }
+ pass DragonBodyPass // 29
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_Body();
+ }
+ pass DragonBody_OUTLINE_WRITEPass // 30
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default_OutLine_SWrite, 2);
+ SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_Body();
+ }
+ pass DragonRedHotPass // 31
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_RedHot();
+ }
+ pass DragonPinkHotPass // 32
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_PinkHot();
+ }
+ pass DragonYellowHotPass // 33
+ {
+ SetRasterizerState(RS_Default);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_Dragon_YellowHot();
+ }
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
index 3ac1e5d5d..5c51ddefb 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl
@@ -64,13 +64,21 @@ Texture2D g_DiffuseTexture;
Texture2D g_MaskingTexture;
int g_iHover;
+int g_iBoosterOn;
+int g_iBoosterOff;
int g_iClick;
int g_iColor;
+int g_Count;
+int g_ChaseCount;
int g_iStep1 = 0;
int g_iStep2 = 0;
int g_iStep3 = 0;
+float2 g_Trail[200];
+float2 g_ChaseTrail[200];
+
+
struct VS_IN
{
float3 vPosition : POSITION;
@@ -1795,32 +1803,105 @@ PS_OUT PS_SpellLearnColor(PS_IN In)
Color = tex;
Color.rgb *= tex1.rgb;
-
- float2 rectPos = g_fPosition;
+
+ float2 rectPos = g_fPosition - float2(256.f, 259.f);
float2 rectSize = g_fCurrent_Size;
float2 itemPos = g_fItemPosition1;
float2 itemSize = g_fItemImageSizes1;
- float x0 = max(rectPos.x, itemPos.x);
- float x1 = min(rectPos.x + rectSize.x, itemPos.x + itemSize.x);
- float y0 = max(rectPos.y, itemPos.y);
- float y1 = min(rectPos.y + rectSize.y, itemPos.y + itemSize.y);
+ float2 pixelPos;
+ pixelPos.x = rectPos.x + In.vTexcoord.x * rectSize.x;
+ pixelPos.y = rectPos.y + (1.0f - In.vTexcoord.y) * rectSize.y;
- float uMin = (x0 - rectPos.x) / rectSize.x;
- float uMax = (x1 - rectPos.x) / rectSize.x;
- float vMin = (y0 - rectPos.y) / rectSize.y;
- float vMax = (y1 - rectPos.y) / rectSize.y;
-
- vMin = 1.0f - vMin;
- vMax = 1.0f - vMax;
-
- if (In.vTexcoord.x >= min(uMin, uMax) && In.vTexcoord.x <= max(uMin, uMax) &&
- In.vTexcoord.y >= min(vMin, vMax) && In.vTexcoord.y <= max(vMin, vMax))
+ if (pixelPos.x >= itemPos.x &&
+ pixelPos.x <= itemPos.x + itemSize.x &&
+ pixelPos.y >= itemPos.y &&
+ pixelPos.y <= itemPos.y + itemSize.y)
{
Color.rgb = float3(0.f, 0.f, 1.f);
}
+
+ for (int i = 0; i < g_Count; ++i)
+ {
+ float2 trailTopLeft = g_Trail[i];
+ float2 trailCenter = trailTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x / 2.0f + 6.f;
+ float halfHeight = itemSize.y / 2.0f + 6.f;
+
+ if (pixelPos.x >= trailCenter.x - halfWidth &&
+ pixelPos.x <= trailCenter.x + halfWidth &&
+ pixelPos.y >= trailCenter.y - halfHeight &&
+ pixelPos.y <= trailCenter.y + halfHeight)
+ {
+ Color.rgb = float3(20.f, 100.f, 180.f) / 255.f;
+ break;
+ }
+ }
+ for (int j = 0; j < g_ChaseCount; ++j)
+ {
+ float2 ChaseTopLeft = g_ChaseTrail[j];
+ float2 ChaseCenter = ChaseTopLeft + itemSize / 2.0f;
+
+ float halfWidth = itemSize.x * 0.7f;
+ float halfHeight = itemSize.y * 0.7f;
+
+ if (pixelPos.x >= ChaseCenter.x - halfWidth &&
+ pixelPos.x <= ChaseCenter.x + halfWidth &&
+ pixelPos.y >= ChaseCenter.y - halfHeight &&
+ pixelPos.y <= ChaseCenter.y + halfHeight)
+ {
+ Color.rgb = float3(110.f, 5.f, 5.f) / 255.f;
+ break;
+ }
+ }
+
+ Color.a *= Alpha;
+ Out.vColor = Color;
+ return Out;
+}
+
+PS_OUT PS_SpellLearnBooster(PS_IN In)
+{
+ PS_OUT Out;
+ float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
+
+ float4 Color = float4(1.f, 1.f, 1.f, 1.f);
+ float4 tex = g_Texture.Sample(DefaultSampler, In.vTexcoord);
+
+ Color = tex;
+
+ float2 Imagetexpos1 = g_fImageSipos1.xy / g_fCurrent_Size;
+ float2 Imagetexsize1 = g_fImageSipos1.zw / g_fCurrent_Size;
+ float2 Imagelocal = (In.vTexcoord - Imagetexpos1) / Imagetexsize1;
+ bool inside1 = all(Imagelocal >= 0.0f && Imagelocal <= 1.0f);
+
+ if (g_iBoosterOn == 0 && g_iBoosterOff == 0)
+ {
+ if (inside1)
+ {
+ float4 tex1 = g_Texture1.Sample(DefaultSampler, Imagelocal);
+ Color = lerp(Color, tex1, tex1.a);
+ }
+ }
+ else if (g_iBoosterOn != 0 && g_iBoosterOff == 0)
+ {
+
+ float4 tex3 = g_Texture3.Sample(DefaultSampler, In.vTexcoord);
+ Color = lerp(Color, tex3, tex3.a);
+ }
+ else if (g_iBoosterOn == 0 && g_iBoosterOff != 0)
+ {
+ float4 tex2 = g_Texture2.Sample(DefaultSampler, In.vTexcoord);
+
+ tex2.rgb *= float3(1.f, 0.f, 0.f);
+ Color = tex;
+
+ Color = lerp(Color, tex2, tex2.a);
+ }
+
Color.a *= Alpha;
Out.vColor = Color;
return Out;
@@ -2416,6 +2497,16 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_SpellLearnColor();
}
+ pass SpellLearnBooster
+ {
+ SetRasterizerState(RS_Nocull);
+ SetDepthStencilState(DSS_Default, 0);
+ SetBlendState(BS_AlphaBlend, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
+ VertexShader = compile vs_5_0 VS_MAIN();
+ GeometryShader = NULL;
+ PixelShader = compile ps_5_0 PS_SpellLearnBooster();
+ }
+
pass Enemy_Detection
{
SetRasterizerState(RS_Nocull);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
index e66653ba8..bb003e9d0 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxAnimMesh.hlsl
@@ -125,24 +125,23 @@ VS_OUT VS_MAIN(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
@@ -195,23 +194,23 @@ VS_OUT_OUTLINE VS_MAIN_OUTLINE(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
matrix PrevBoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_PrevBoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_PrevBoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_PrevBoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
+ mul(g_PrevBoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
vector vPrevPosition = mul(vector(In.vPosition, 1.f), PrevBoneMatrix);
@@ -322,14 +321,14 @@ VS_OUT_SHADOW VS_MAIN_SHADOW(VS_IN In)
matrix BoneMatrix =
mul(g_OffsetMatrix[In.vBlendIndex.x],
- g_BoneBuffer[In.vBlendIndex.x].LocalCombined) * w.x
+ mul(g_BoneBuffer[In.vBlendIndex.x].LocalCombined, w.x))
+ mul(g_OffsetMatrix[In.vBlendIndex.y],
- g_BoneBuffer[In.vBlendIndex.y].LocalCombined) * w.y
+ mul(g_BoneBuffer[In.vBlendIndex.y].LocalCombined, w.y))
+ mul(g_OffsetMatrix[In.vBlendIndex.z],
- g_BoneBuffer[In.vBlendIndex.z].LocalCombined) * w.z
+ mul(g_BoneBuffer[In.vBlendIndex.z].LocalCombined, w.z))
+ mul(g_OffsetMatrix[In.vBlendIndex.w],
- g_BoneBuffer[In.vBlendIndex.w].LocalCombined) * w.w;
-
+ mul(g_BoneBuffer[In.vBlendIndex.w].LocalCombined, w.w));
+
/* ?ㅽ궎??*/
vector vPosition = mul(vector(In.vPosition, 1.f), BoneMatrix);
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
index f6c196114..9d191be04 100644
--- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
+++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxMesh.hlsl
@@ -428,7 +428,8 @@ PS_OUT PS_GLASS(PS_IN In)
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
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 = CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
+ Out.vVelocityUV = float2(0.5f, 0.5f);
+ //CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
@@ -456,7 +457,8 @@ PS_OUT PS_GLASS_CUBE(PS_IN In)
Out.vNormal = float4(In.vNormal * 0.5f + 0.5f, 0.f);
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 = CalcVelocityUV(In.vProjPos, In.vPrevProjPos) * 0.5f + 0.5f;
+ Out.vVelocityUV = float2(0.5f, 0.5f);
+ //CalcVelocityUV(In.vProjPos, In.vPrevProjPos);
return Out;
}
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_Gradient02R_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_Gradient02R_D.png
new file mode 100644
index 000000000..c1e53c47c
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_Gradient02R_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_Gradient02S_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_Gradient02S_D.png
new file mode 100644
index 000000000..25a6a0b38
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_Gradient02S_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_VerticalBeamS_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_VerticalBeamS_D.png
new file mode 100644
index 000000000..87f0e32d8
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Gradients/VFX_T_VerticalBeamS_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png
index 9df5cba6e..1cfceb4d7 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SU_CursorArrow.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstDropBack.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstDropBack.png
new file mode 100644
index 000000000..4e4b60dda
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstDropBack.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstFail.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstFail.png
new file mode 100644
index 000000000..f8b24e389
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/UI_T_SpellMinigame_SpeedBurstFail.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/VFX_T_Speck_HighCoverage_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/VFX_T_Speck_HighCoverage_D.png
new file mode 100644
index 000000000..60dfbbad3
Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/SpellUnlock/VFX_T_Speck_HighCoverage_D.png differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds
index 66d912ed0..ca819de01 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/Atlas_Widget_Spell.dds differ
diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds
index 094852933..d202a99fd 100644
Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Spells/SpellMeters/Atlas_Spell.dds differ
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
index d026e6ada..93f64a17c 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj
@@ -198,13 +198,17 @@ call Update_Shaders.bat
-
+
+
+
+
+
@@ -424,13 +428,17 @@ call Update_Shaders.bat
-
+
+
+
+
+
diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
index 9b40d75f3..f06c47741 100644
--- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
+++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters
@@ -631,11 +631,23 @@
{6e769435-83c4-4f64-b306-1b8c5f2d228d}
-
+
{54a92f0d-26f1-49bf-a13b-ab11995968c7}
{3b207257-c396-473b-9906-df04b28fb0cd}
+
+
+ {ea002e2c-481e-4f1f-a16f-4e47e3a48d37}
+
+
+ {933a90c2-8fce-4e6d-89e7-74e88cbc7f45}
+
+
+ {5bab4bbf-253e-4d66-a0d2-8a6328ae244b}
+
+
+ {268e67a6-fa77-4a34-84d9-b3e6f6e46a00}
@@ -1263,8 +1275,20 @@
50.UI\SpellLearn_Data
-
- 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_SpeedPointer
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
02.GameObjects\Layer_Effect\Effect\Magic\Blink
@@ -1897,8 +1921,20 @@
50.UI\SpellLearn_Data
-
- 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_SpeedPointer
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SPellLeam_ChaserPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLeam_LookPointer
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Booster
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Overlay
+
+
+ 50.UI\SpellLearn_Canvas\SpellLearn_Panel\SpellLearn_Slot
02.GameObjects\Layer_Effect\Effect\Magic\Blink
diff --git a/Jusin154_Team3D/Editor/Private/DummyObject.cpp b/Jusin154_Team3D/Editor/Private/DummyObject.cpp
index f7f91eed9..c91044b84 100644
--- a/Jusin154_Team3D/Editor/Private/DummyObject.cpp
+++ b/Jusin154_Team3D/Editor/Private/DummyObject.cpp
@@ -39,6 +39,7 @@ HRESULT CDummyObject::Initialize(void* pArg)
void CDummyObject::Priority_Update(_float fTimeDelta)
{
+ m_pTransformCom->RewindMomentum();
}
void CDummyObject::Update(_float fTimeDelta)
@@ -49,7 +50,12 @@ void CDummyObject::Update(_float fTimeDelta)
void CDummyObject::Late_Update(_float fTimeDelta)
{
+#ifdef 기무리
+ m_pGameInstance->Add_RenderGroup(RENDER::NONBLEND, this);
+#else
m_pGameInstance->Add_RenderGroup(RENDER::BLEND, this);
+#endif // 기무리
+
}
HRESULT CDummyObject::Render()
@@ -62,6 +68,7 @@ HRESULT CDummyObject::Render()
for (_uint i = 0; i < iNumMeshes; i++)
{
+
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
return E_FAIL;
}
@@ -75,13 +82,24 @@ HRESULT CDummyObject::Render()
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
- return E_FAIL;
+ if (m_pModelCom->Get_Type() == MODEL::PBR_ANIM)
+ {
+ if (FAILED(m_pModelCom->Begin(i, m_pShaderCom, false))) {
+ return E_FAIL;
+ }
+
+ m_pModelCom->Bind_OutPut_SRV_VS(26, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(27, 0);
}
+ else {
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_ANIM::DEFAULT)))) {
+ return E_FAIL;
+ }
- m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
- m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS(31, 0);
+ m_pModelCom->Bind_OutPut_SRV_VS_Prev(32, 0);
+ }
if (FAILED(m_pModelCom->Render(i))) {
return E_FAIL;
@@ -101,15 +119,24 @@ HRESULT CDummyObject::Ready_Components()
__super::Ready_Components(&Desc);
- /* Com_Model */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, m_strModelPrototypeTag,
- reinterpret_cast(&m_pModelCom))))
+ reinterpret_cast(&m_pModelCom)))){
return E_FAIL;
+ }
- /* Com_Shader */
- if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
- reinterpret_cast(&m_pShaderCom))))
- return E_FAIL;
+ if (m_pModelCom->Get_Type() == MODEL::PBR_ANIM)
+ {
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+ }
+ else {
+ if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_ANIMMESH,
+ reinterpret_cast(&m_pShaderCom)))) {
+ return E_FAIL;
+ }
+ }
return S_OK;
}
@@ -125,6 +152,17 @@ HRESULT CDummyObject::Bind_ShaderResources()
if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) {
return E_FAIL;
}
+#ifdef 기무리
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_PrevWorldMatrix", m_pTransformCom->Get_PrevWorldMatrixPtr()))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevViewMatrix", D3DTS::VIEW))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Bind_PrevMatrix(m_pShaderCom, "g_PrevProjMatrix", D3DTS::PROJ))) {
+ return E_FAIL;
+ }
+#endif // 기무리
if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) {
return E_FAIL;
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp
index a25c08546..40902a74e 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXBox.cpp
@@ -164,7 +164,7 @@ CGameObject* CDummy_PhysXBox::Clone(void* pArg, CGameObject* pOwner)
void CDummy_PhysXBox::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp
index 9fc52d5a4..99f4c58de 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXEffectHitBox.cpp
@@ -177,7 +177,7 @@ void CDummy_PhysXEffectHitBox::Free()
PSX::PxExtendedVec3 pxControlllerPos = m_pCharacter_Controller->Get_Controller()->getPosition();
PSX::PxTransform pxTransform((_float)pxControlllerPos.x, (_float)pxControlllerPos.y + 100.f, (_float)pxControlllerPos.z);
m_pCharacter_Controller->Set_Position(XMLoadFloat3((_float3*)&pxTransform.p));
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
index d6f847f70..50695a0bb 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXMonster.cpp
@@ -138,7 +138,7 @@ HRESULT CDummy_PhysXMonster::Ready_Components(void* pArg)
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
index b87568c73..5cb8b5732 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXPlayable.cpp
@@ -47,12 +47,12 @@ void CDummy_PhysXPlayable::Update(_float fTimeDelta)
m_pTransformCom->AccumulateMomentum(XMVectorSet(0.f, -10.f, 0.f, 0.f) * m_pTransformCom->Get_Speed() * fTimeDelta);
}
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
else {
if (m_pGameInstance->Key_Down(DIK_V)) {
- m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor());
+ m_pGameInstance->Attach_Actor(*m_pCharacter_Controller->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
}
@@ -154,7 +154,7 @@ HRESULT CDummy_PhysXPlayable::Ready_Components(void* pArg)
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
/* Com_Shader */
if (FAILED(__super::Add_Asset_Component(g_iStaticLevel, FX_MESH,
diff --git a/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp b/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp
index a0b89ec34..7935ae394 100644
--- a/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp
+++ b/Jusin154_Team3D/Editor/Private/Dummy_PhysXWall.cpp
@@ -154,7 +154,7 @@ CGameObject* CDummy_PhysXWall::Clone(void* pArg, CGameObject* pOwner)
void CDummy_PhysXWall::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
index 0734439d5..7235176b8 100644
--- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp
+++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp
@@ -431,7 +431,7 @@ void CEditEffect::Describe_Entity()
//여기서 모델, 텍스쳐, 선택할 수 있도록 함
const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" };
- const char* pRenderNames[] = { "PRIORITY" , "SHADOW_NEAR", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM", "DISTORTION", "BULR_MESH" , "UI", "OCCLUSION" , "SHADOW_MIDDLE", "SHADOW_FAR" , "PRESHADOW" , "UI_OVERLAY"};
+ const char* pRenderNames[] = { "PRIORITY" , "SHADOW_NEAR", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM", "DISTORTION", "BULR_MESH" , "UI", "OCCLUSION" , "SHADOW_MIDDLE" , "PRESHADOW" , "UI_OVERLAY"};
const char* pEffectType[] = { "EFFECT" , "TRAIL" };
const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" ,"BLUR_NO_EMMISVE",
diff --git a/Jusin154_Team3D/Editor/Private/Goblin.cpp b/Jusin154_Team3D/Editor/Private/Goblin.cpp
index 1ed7a6271..afdef5cbc 100644
--- a/Jusin154_Team3D/Editor/Private/Goblin.cpp
+++ b/Jusin154_Team3D/Editor/Private/Goblin.cpp
@@ -328,7 +328,7 @@ HRESULT CGoblin::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
//if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_GOBLIN"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
index e3a80969f..e0b989504 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Loading.cpp
@@ -46,10 +46,14 @@ void CLevel_Loading::Update(_float fTimeDelta)
if(m_eNextLevelID == LEVEL::UI)
m_bNextLevel = true;
+#ifdef 기무리
+ m_bNextLevel = true;
+#endif // 기무리
if (m_pGameInstance->Key_Down(DIK_F1))
{
- if (m_eNextLevelID != LEVEL::LOGO)
+ if (m_eNextLevelID != LEVEL::LOGO){
m_bNextLevel = true;
+ }
else
{
static_cast(m_pIntro_Image)->Set_Hover(true);
diff --git a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
index 326d0a33c..a297cbb4f 100644
--- a/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
+++ b/Jusin154_Team3D/Editor/Private/Level_Logo.cpp
@@ -59,6 +59,10 @@ void CLevel_Logo::Update(_float fTimeDelta)
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::MAP))))
return;
#endif // gimch
+#ifdef 기무리
+ if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::OBJECT))))
+ return;
+#endif // 기무리
#ifdef 진우
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, LEVEL::EFFECT))))
return;
diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp
index 128b2c0e2..9174e57e1 100644
--- a/Jusin154_Team3D/Editor/Private/Loader.cpp
+++ b/Jusin154_Team3D/Editor/Private/Loader.cpp
@@ -118,6 +118,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "SpellLearn_LookPointer.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
#include "IMGUIUI.h"
@@ -352,6 +357,12 @@ HRESULT CLoader::Loading_For_Logo()
VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_NPC_PBR_ANIM,
+ CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_NPC_PBR_Anim.hlsl"),
+ VTXANIMMESH::Elements, VTXANIMMESH::iNumElements)))) {
+ return E_FAIL;
+ }
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, FX_CELL,
CShader::Create(m_pDevice, m_pContext, TEXT("../Bin/Resources/ShaderFiles/Shader_Cell.hlsl"),
@@ -1214,6 +1225,7 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Canvas::Create(m_pDevice, m_pContext))))
{
return E_FAIL;
@@ -1234,6 +1246,26 @@ HRESULT CLoader::Loading_For_UI()
{
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_ChaserPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_LookPointer::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Booster::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Slot::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CSpellLearn_Overlay::Create(m_pDevice, m_pContext))))
+ {
+ return E_FAIL;
+ }
if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CIMGUIUI::Create(m_pDevice, m_pContext))))
{
@@ -1475,6 +1507,17 @@ HRESULT CLoader::Loading_For_Effect()
});
+
+ Asset_FileLoad("../Bin/Resources/Models/Effect/Spline", L"Prototype_Instance_Model_", [&](_wstring wstrFileName, const _char* pFilePath) {
+
+ if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName,
+ CInstance_Model::Create(m_pDevice, m_pContext, pFilePath, MODEL::NONANIM, XMMatrixScaling(0.1f, 0.1f, 0.1f) * XMMatrixIdentity(), 0))))
+ return E_FAIL;
+
+ return S_OK;
+
+ });
+
if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::STATIC), TEXT("Desc_Box"),
CModel::Create(m_pDevice, m_pContext, MODEL::NONANIM, "../Bin/Resources/Models/Box/Box.bin", XMMatrixIdentity()))))
return E_FAIL;
@@ -2387,6 +2430,19 @@ HRESULT CLoader::Loading_For_ObjectViewer()
TEXT("Prototype_Component_Dragon_Model")
));
+ futures.emplace_back(Deferred_ModelLoad(
+ MODEL::PBR_ANIM, "../Bin/Resources/Models/Monster/ConjuredDragon/ConjuredDragon.bin", XMMatrixScaling(0.01f, 0.01f, 0.01f) * XMMatrixRotationZ(XMConvertToRadians(180.f)) * XMMatrixIdentity(),
+ TEXT("Prototype_Component_ConjuredDragon_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
futures.emplace_back(Deferred_ModelLoad(
@@ -2413,7 +2469,6 @@ HRESULT CLoader::Loading_For_ObjectViewer()
MODEL::ANIM, "../Bin/Resources/Models/Human/Npc/Npc.bin", XMMatrixRotationY(XMConvertToRadians(180.f))* XMMatrixIdentity(),
TEXT("Prototype_Component_Npc_Model")
));
-
futures.emplace_back(Deferred_ModelLoad(
MODEL::ANIM, "../Bin/Resources/Models/Object/Wand/Wand.bin",XMMatrixIdentity(),
TEXT("Prototype_Component_Wand_Model")
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Chest.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Chest.cpp
index f738d0e23..4ab6ed7d5 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Chest.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Chest.cpp
@@ -329,7 +329,7 @@ CGameObject* CMapElement_Chest::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Chest::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp
index f76e1a9e3..374b2e7a3 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Door.cpp
@@ -214,7 +214,7 @@ CGameObject* CMapElement_Door::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Door::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp b/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp
index 89277aade..e249f9b7e 100644
--- a/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp
+++ b/Jusin154_Team3D/Editor/Private/MapElement_Interactable.cpp
@@ -209,7 +209,7 @@ CGameObject* CMapElement_Interactable::Clone(void* pArg, CGameObject* pOwner)
void CMapElement_Interactable::Free()
{
if (nullptr != m_pRigidBody) {
- m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Release_Actor(*m_pRigidBody->Get_Actor(), m_pGameInstance->Get_CurrentLevelID());
}
__super::Free();
diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp
index 8893229c5..094a63672 100644
--- a/Jusin154_Team3D/Editor/Private/Player.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player.cpp
@@ -304,7 +304,7 @@ HRESULT CPlayer::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
return S_OK;
diff --git a/Jusin154_Team3D/Editor/Private/Player_States.cpp b/Jusin154_Team3D/Editor/Private/Player_States.cpp
index c5ab6bf28..1892b3d3b 100644
--- a/Jusin154_Team3D/Editor/Private/Player_States.cpp
+++ b/Jusin154_Team3D/Editor/Private/Player_States.cpp
@@ -446,7 +446,7 @@ HRESULT CPlayer::Behavior_MoveExitCheck(_float fTimeDelta)
m_pFSM->Change_State(FSMSTATE::COMBAT);
}
else if (m_pGameInstance->Key_Down(DIK_B)) {
- m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
+// m_pFSM->Change_State(FSMSTATE::BROOM_RIDE);
}
else if (m_pGameInstance->Key_Down(DIK_LSHIFT)) {
m_bSprintToggle = !m_bSprintToggle;
@@ -1360,7 +1360,7 @@ void CPlayer::Set_Anim()
m_Animation[STATEANIM::LAND] = { 259,false };
- m_Animation[STATEANIM::DODGE] = { 878,false };
+ m_Animation[STATEANIM::DODGE] = { 878,false }; // 879 880
m_Animation[STATEANIM::DODGE_BLINK] = { 874,false };
m_Animation[STATEANIM::SKILL] = { 593,false };
diff --git a/Jusin154_Team3D/Editor/Private/SPellLeam_SpeedPointer.cpp b/Jusin154_Team3D/Editor/Private/SPellLeam_SpeedPointer.cpp
deleted file mode 100644
index de1ee7712..000000000
--- a/Jusin154_Team3D/Editor/Private/SPellLeam_SpeedPointer.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-#include "pch.h"
-#include "SPellLeam_SpeedPointer.h"
-#include "GameInstance.h"
-
-CSPellLeam_SpeedPointer::CSPellLeam_SpeedPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
- :CElementObject(pDevice, pContext)
-{
-}
-
-CSPellLeam_SpeedPointer::CSPellLeam_SpeedPointer(const CSPellLeam_SpeedPointer& rhs)
- :CElementObject(rhs)
-{
-}
-
-HRESULT CSPellLeam_SpeedPointer::Initialize_Prototype()
-{
- return S_OK;
-}
-
-HRESULT CSPellLeam_SpeedPointer::Initialize(void* pArg)
-{
- CUIObject::UIOBJECT_DESC Desc{};
-
- Desc.fX = 476.f;
- Desc.fY = -253.f;
- Desc.fSizeX = 32.f;
- Desc.fSizeY = 32.f;
- m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
-
- if (FAILED(__super::Initialize(&Desc)))
- {
- return E_FAIL;
- }
- if (FAILED(Ready_Components(pArg)))
- {
- return E_FAIL;
- }
-
- m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
- m_fAlphaTime = 5.f;
- m_fMoveSpeed = 15.f;
- m_fAngle = XMConvertToRadians(0);
- Visible(false);
- return S_OK;
-}
-
-void CSPellLeam_SpeedPointer::Priority_Update(_float fTimeDelta)
-{
-}
-
-void CSPellLeam_SpeedPointer::Update(_float fTimeDelta)
-{
-}
-
-void CSPellLeam_SpeedPointer::Late_Update(_float fTimeDelta)
-{
-}
-
-HRESULT CSPellLeam_SpeedPointer::Render()
-{
- return S_OK;
-}
-
-_vector CSPellLeam_SpeedPointer::Get_WorldPostion()
-{
- return _vector();
-}
-
-HRESULT CSPellLeam_SpeedPointer::Bind_ShaderResources()
-{
- return S_OK;
-}
-
-HRESULT CSPellLeam_SpeedPointer::Ready_Components(void* pArg)
-{
- return S_OK;
-}
-
-CSPellLeam_SpeedPointer* CSPellLeam_SpeedPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
-{
- return nullptr;
-}
-
-CGameObject* CSPellLeam_SpeedPointer::Clone(void* pArg, CGameObject* pOwner)
-{
- return nullptr;
-}
-
-void CSPellLeam_SpeedPointer::Free()
-{
-}
-
-void CSPellLeam_SpeedPointer::Describe_Entity()
-{
-}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn.cpp
index 8a0468f02..5798d5f0d 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn.cpp
@@ -2,6 +2,7 @@
#include "SpellLearn.h"
#include "GameInstance.h"
#include "SpellLearn_MovePointer.h"
+#include "SpellLearn_ChaserPointer.h"
CSpellLearn::CSpellLearn(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
@@ -38,8 +39,12 @@ HRESULT CSpellLearn::Initialize(void* pArg)
}
m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
+ m_iTrailIndex = 0;
+ m_fSortZ = 0.02f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("OverrlayClear"), [this](void* p) {this->Set_FadeOut(); });
Change_Image(0);
Visible(false);
return S_OK;
@@ -86,7 +91,44 @@ void CSpellLearn::Update(_float fTimeDelta)
}
}
- m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_bReset == true)
+ {
+ m_Trail.clear();
+ m_ChaseTrail.clear();
+ m_bReset = false;
+ }
+
+ if (m_bHover == false)
+ {
+ fill(m_Trail.begin(), m_Trail.end(), _float2(-9999.f, -9999.f));
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
+ m_bReset = true;
+ }
+
+ if (m_pPointer != nullptr)
+ {
+ if (m_pPointer->Get_MoveStart() == true)
+ {
+ m_bHover = true;
+ m_vPointerPosition = m_pPointer->Get_Position();
+ m_vPointerScale = m_pPointer->Get_Current_Size();
+
+ m_vChasePosition = m_pChasePointer->Get_Position();
+ m_vChaseScale = m_pChasePointer->Get_Current_Size();
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ if (m_fTime >= 0.3f)
+ {
+ m_fTime = 0.f;
+ m_Trail.push_back(m_vPointerPosition);
+ m_iTrailIndex++;
+ m_ChaseTrail.push_back(m_vChasePosition);
+ m_iChaseiTrailIndex++;
+ }
+ }
+ }
+
+
__super::Update(fTimeDelta);
}
@@ -98,11 +140,7 @@ void CSpellLearn::Late_Update(_float fTimeDelta)
}
if (m_bVisible) {
if (m_pPointer != nullptr)
- {
- m_vPointerPosition = m_pPointer->Get_Position();
- m_vPointerScale = m_pPointer->Get_Current_Size();
- }
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
@@ -172,10 +210,6 @@ HRESULT CSpellLearn::Bind_ShaderResources()
{
return E_FAIL;
}
- if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemPosition1", &m_vPointerPosition, sizeof(_float2))))
- {
- return E_FAIL;
- }
if (FAILED(m_pShaderCom->Bind_RawValue("g_fItemImageSizes1", &m_vPointerScale, sizeof(_float2))))
{
return E_FAIL;
@@ -188,7 +222,22 @@ HRESULT CSpellLearn::Bind_ShaderResources()
{
return E_FAIL;
}
-
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Trail", m_Trail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_Count", &m_iTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseTrail", m_ChaseTrail.data(), sizeof(_float2) * _uint(m_Trail.size()))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_ChaseCount", &m_iChaseiTrailIndex, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
@@ -216,9 +265,14 @@ HRESULT CSpellLearn::Ready_Components(void* pArg)
HRESULT CSpellLearn::Change_Image(_int SpellID)
{
+ m_bHover = false;
+ m_ChaseTrail.push_back(_float2(-9999.f, -9999.f));
+ m_Trail.push_back(_float2(-9999.f, -9999.f));
+ m_iTrailIndex = 0;
+ m_iChaseiTrailIndex = 0;
_wstring pName = TEXT("Prototype_Texture_");
_wstring pImageName = pName + static_cast(m_pOwner)->Get_Learninfo(SpellID).pImageName;
-
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(SpellID).Lines;
if (m_pDiffuse_TextureCom)
{
Remove_Component();
@@ -227,12 +281,19 @@ HRESULT CSpellLearn::Change_Image(_int SpellID)
if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(LEVEL::UI), pImageName, reinterpret_cast(&m_pDiffuse_TextureCom))))
return E_FAIL;
+ Set_FadeIn();
return S_OK;
}
-void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer)
+void CSpellLearn::Set_Pointer(CSpellLearn_MovePointer* Pointer, CSpellLearn_ChaserPointer* Chase)
{
m_pPointer = Pointer;
+ m_pChasePointer = Chase;
+}
+
+void CSpellLearn::Clear()
+{
+ fill(m_ChaseTrail.begin(), m_ChaseTrail.end(), _float2(-9999.f, -9999.f));
}
CSpellLearn* CSpellLearn::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Booster.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Booster.cpp
new file mode 100644
index 000000000..df6f02a4a
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Booster.cpp
@@ -0,0 +1,317 @@
+#include "pch.h"
+#include "SpellLearn_Booster.h"
+#include "GameInstance.h"
+
+CSpellLearn_Booster::CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Booster::CSpellLearn_Booster(const CSpellLearn_Booster& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_Booster::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 64.f;
+ Desc.fSizeY = 64.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_fAngle = XMConvertToRadians(0);
+ m_bHover = true;
+ m_fImagePosi = _float4(16.f, 16.f, 32.f, 32.f);
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOn"), [this](void* p) {this->BoosterOn(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("BoosterOff"), [this](void* p) {this->BoosterOff(p); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Visible(true);
+ return S_OK;
+}
+
+void CSpellLearn_Booster::BoosterOn(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOn = true;
+ m_bBoosterOff = false;
+}
+
+void CSpellLearn_Booster::BoosterOff(void* pArg)
+{
+ Booster* State = static_cast(pArg);
+
+ if (m_bBoosterOn == true)
+ return;
+
+ if (State->iBoosterIndex != m_iIndex)
+ return;
+
+ m_bBoosterOff = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("ChaseBooster"));
+}
+
+void CSpellLearn_Booster::Set_Index(_int iIndex)
+{
+ m_iIndex = iIndex;
+}
+
+void CSpellLearn_Booster::Reset()
+{
+ m_bBoosterOn = false;
+ m_bBoosterOff = false;
+ Set_FadeIn();
+}
+
+void CSpellLearn_Booster::Clear()
+{
+ Set_FadeOut();
+}
+
+void CSpellLearn_Booster::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Booster::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_Booster::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SPELLLEARNBOOSTER)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Booster::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Booster::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCurrent_Size", &m_vScale, sizeof(_float2))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageSipos1", &m_fImagePosi, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iHover", &m_bHover, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOn", &m_bBoosterOn, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iBoosterOff", &m_bBoosterOff, sizeof(_bool))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Booster::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SU_ButtonCalloutRing"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Mouse_LeftClick"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstFail"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_VFX_T_Speck_HighCoverage_D"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpellLearn_Booster* CSpellLearn_Booster::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Booster::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Booster* pInstance = new CSpellLearn_Booster(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Booster");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Booster::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_Booster::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_ChaserPointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_ChaserPointer.cpp
new file mode 100644
index 000000000..5c760c82f
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_ChaserPointer.cpp
@@ -0,0 +1,290 @@
+#include "pch.h"
+#include "SpellLearn_ChaserPointer.h"
+#include "GameInstance.h"
+#include "SpellLearn_MovePointer.h"
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_ChaserPointer::CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_ChaserPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 476.f;
+ Desc.fY = -253.f;
+ Desc.fSizeX = 32.f;
+ Desc.fSizeY = 32.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 0.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 165.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("ChaseBooster"), [this](void* p) {this->SpeedUp(); });
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Set_SpellLearn(0);
+ Visible(false);
+ return S_OK;
+}
+
+void CSpellLearn_ChaserPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bMoveStart == true)
+ {
+ Line(fTimeDelta);
+ }
+
+ if (m_fMoveSpeed >= 165.f)
+ {
+ m_fMoveSpeed -= fTimeDelta;
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+
+
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_ChaserPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_ChaserPointer::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::DEFAULT)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_ChaserPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+void CSpellLearn_ChaserPointer::Set_SpellLearn(_int Index)
+{
+ m_fAlpha = 0.f;
+ m_bHover = false;
+ m_bMoveStart = false;
+ m_fTime = 0.f;
+ m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
+ m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+ m_fMoveSpeed = 165.f;
+}
+
+void CSpellLearn_ChaserPointer::Set_Move()
+{
+ m_bHover = true;
+ m_bMoveStart = true;
+}
+
+void CSpellLearn_ChaserPointer::Line(_float fTime)
+{
+ m_vLerp_Position = m_MoveLine[m_iCurrentLine];
+
+ if (Start_Lerp(fTime) == true)
+ {
+ if (m_iCurrentLine < m_iLineIndex - 1)
+ {
+ ++m_iCurrentLine;
+ }
+ else
+ {
+ m_bMoveStart = false;
+ }
+ }
+
+}
+
+void CSpellLearn_ChaserPointer::SpeedUp()
+{
+ m_fMoveSpeed = 190.f;
+}
+
+void CSpellLearn_ChaserPointer::Clear()
+{
+ m_fMoveSpeed = 0.f;
+ Set_FadeOut();
+}
+
+HRESULT CSpellLearn_ChaserPointer::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_ChaserPointer::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SpellMinigame_SpeedBurstDropBack"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+CSpellLearn_ChaserPointer* CSpellLearn_ChaserPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_ChaserPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_ChaserPointer* pInstance = new CSpellLearn_ChaserPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_ChaserPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_ChaserPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_ChaserPointer::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp
index da293f8fe..2456abd27 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Data.cpp
@@ -41,12 +41,34 @@ HRESULT CSpellLearn_Data::Initialize(void* pArg)
// 속성 읽기
Info.pSpellName = CMyTools::ToWstring(pName->Attribute("SpellName"));
Info.pImageName = CMyTools::ToWstring(pName->Attribute("ImageName"));
+ pName->QueryIntAttribute("SpellID", &Info.iSpellID);
+ pName->QueryIntAttribute("SpellType", &Info.iSpellType);
pName->QueryFloatAttribute("Size", &Info.fSpellSize);
_float fX{}, fY{};
pName->QueryFloatAttribute("x", &fX);
pName->QueryFloatAttribute("y", &fY);
Info.fStartPosition = _float2(fX, fY);
+ _float endx{}, endy{};
+ pName->QueryFloatAttribute("endx", &endx);
+ pName->QueryFloatAttribute("endy", &endy);
+ Info.fEndPosition = _float2(endx, endy);
+
+ tinyxml2::XMLElement* pBooster = pName->FirstChildElement("Booster");
+ while (pBooster)
+ {
+ tinyxml2::XMLElement* pPos = pBooster->FirstChildElement("Pos");
+ if (pPos)
+ {
+ _float px{}, py{};
+ pPos->QueryFloatAttribute("x", &px);
+ pPos->QueryFloatAttribute("y", &py);
+ Info.Booster.push_back(XMVectorSet(px, py, 0.f, 1.f));
+ }
+
+ // 다음 Position으로 이동
+ pBooster = pBooster->NextSiblingElement("Booster");
+ }
// Position 요소 반복
tinyxml2::XMLElement* pPosition = pName->FirstChildElement("Position");
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_LookPointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_LookPointer.cpp
new file mode 100644
index 000000000..1db84a47b
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_LookPointer.cpp
@@ -0,0 +1,253 @@
+#include "pch.h"
+#include "SpellLearn_LookPointer.h"
+#include "GameInstance.h"
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_LookPointer::CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 100.f;
+ Desc.fY = 100.f;
+ Desc.fSizeX = 80.f;
+ Desc.fSizeY = 80.f;
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 5.f;
+ m_fMoveSpeed = 130.f;
+ Set_SpellLearn(0);
+ m_fAngle = XMConvertToRadians(0);
+ Visible(true);
+ m_localX = 0.f;
+ m_localY = 20.f;
+ return S_OK;
+}
+
+void CSpellLearn_LookPointer::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ {
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+ }
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta * m_fAlphaTime;;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ m_fAngle = XMConvertToRadians(static_cast(m_pOwner)->Get_Angle());
+
+ float cosA = cos(m_fAngle);
+ float sinA = sin(m_fAngle);
+
+ float rotatedX = m_localX * cosA - m_localY * sinA;
+ float rotatedY = m_localX * sinA + m_localY * cosA;
+
+ MoveX(rotatedX);
+ MoveY(rotatedY);
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_LookPointer::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ __super::Late_Update(fTimeDelta);
+ }
+}
+
+HRESULT CSpellLearn_LookPointer::Render()
+{
+ if (FAILED(Bind_ShaderResources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::ROTATION)))) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources())) {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render())) {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_LookPointer::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_LookPointer::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fMapAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_LookPointer::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_SU_CursorArrow"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_LookPointer::Set_SpellLearn(_int Index)
+{
+ m_bMoveStart = false;
+ m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_iCurrentLine = 0;
+ m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
+ m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+}
+
+CSpellLearn_LookPointer* CSpellLearn_LookPointer::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_LookPointer::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_LookPointer* pInstance = new CSpellLearn_LookPointer(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_LookPointer");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_LookPointer::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_LookPointer::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp
index 2c9c95b4c..ea257f75e 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_MovePointer.cpp
@@ -1,6 +1,7 @@
#include "pch.h"
#include "SpellLearn_MovePointer.h"
#include "GameInstance.h"
+#include "SpellLearn_LookPointer.h"
CSpellLearn_MovePointer::CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CElementObject(pDevice, pContext)
@@ -36,41 +37,68 @@ HRESULT CSpellLearn_MovePointer::Initialize(void* pArg)
return E_FAIL;
}
- m_fTimeMult = 3.f;
- m_fAlpha = 1.f;
+ m_fTimeMult = 10.f;
+ m_fAlpha = 0.f;
m_fAlphaTime = 5.f;
- m_fMoveSpeed = 15.f;
+ m_fMoveSpeed = 105.f;
Set_SpellLearn(0);
m_fAngle = XMConvertToRadians(0);
+ static_cast(m_pOwner)->Add_Function(TEXT("Booster"), [this](void* p) {this->Set_Booster(p); });
Visible(false);
return S_OK;
}
void CSpellLearn_MovePointer::Set_SpellLearn(_int Index)
{
+ m_bMoveStart = false;
+ m_bHover = true;
m_iLineIndex = _int(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
m_MoveLine = static_cast(m_pOwner)->Get_Learninfo(Index).Lines;
+ m_Boosters = static_cast(m_pOwner)->Get_Learninfo(Index).Booster;
m_iCurrentLine = 0;
m_fX = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.x;
m_fY = static_cast(m_pOwner)->Get_Learninfo(Index).fStartPosition.y;
+ m_Booster.iBoosterIndex = -1;
+ m_Booster.bBoosterOn = false;
+ Set_FadeIn();
}
-void CSpellLearn_MovePointer::Line(_float fTime)
+_int CSpellLearn_MovePointer::Get_SpellTrail()
+{
+ return m_iCurrentLine;
+}
+
+_bool CSpellLearn_MovePointer::Get_MoveStart()
+{
+ return m_bMoveStart;
+}
+
+void CSpellLearn_MovePointer::Line(_float fTime, _float2 fMouse)
{
m_vLerp_Position = m_MoveLine[m_iCurrentLine];
- if (Start_Lerp(m_fMoveSpeed * fTime) == true)
+ if (Start_Lerp_Speed(fTime, fMouse) == true)
{
if (m_iCurrentLine < m_iLineIndex - 1)
{
++m_iCurrentLine;
+ m_fPerPosition = _float2(m_MoveLine[m_iCurrentLine - 1].m128_f32[0], m_MoveLine[m_iCurrentLine - 1].m128_f32[1]);
}
else
{
m_bMoveStart = false;
+ Set_FadeOut();
+ static_cast(m_pOwner)->Function_Callback(TEXT("LearnClear"));
}
}
+}
+void CSpellLearn_MovePointer::Set_Booster(void* pArg)
+{
+ Booster* Info = static_cast(pArg);
+ m_Booster.iBoosterIndex = Info->iBoosterIndex;
+ m_Booster.bBoosterOn = Info->bBoosterOn;
+ m_bBooster = true;
}
void CSpellLearn_MovePointer::Priority_Update(_float fTimeDelta)
@@ -114,28 +142,45 @@ void CSpellLearn_MovePointer::Update(_float fTimeDelta)
}
}
+ POINT ptMouse{};
+ GetCursorPos(&ptMouse);
+ ScreenToClient(g_hWnd, &ptMouse);
+ _float2 fMouse{};
+ fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
+ fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+
+ _float2 fFinalMouse{};
+ fFinalMouse.x = fMouse.x - m_fX;
+ fFinalMouse.y = fMouse.y - m_fY;
+
if (m_pGameInstance->Key_Down(DIK_L))
{
m_bMoveStart = true;
+ m_bBooster = false;
+ m_fMoveSpeed = 105.f;
}
if (m_bMoveStart == true)
{
- Line(fTimeDelta);
+ Line(fTimeDelta, fMouse);
}
- POINT ptMouse{};
- GetCursorPos(&ptMouse);
- ScreenToClient(g_hWnd, &ptMouse);
- _float2 fMouse;
- fMouse.x = ptMouse.x - (g_iWinSizeX * 0.5f);
- fMouse.y = -ptMouse.y + (g_iWinSizeY * 0.5f);
+ m_fAngle = atan2(-fFinalMouse.x, fFinalMouse.y);
- fMouse.x = fMouse.x - m_fX;
- fMouse.y = fMouse.y - m_fY;
+ if (m_bBooster == true)
+ {
+ if (m_pGameInstance->Mouse_Down(DIM_LBUTTON))
+ {
+ m_bBooster = false;
+ m_fMoveSpeed = 160.f;
+ static_cast(m_pOwner)->Function_Callback(TEXT("BoosterOn"), &m_Booster);
+ }
+ }
-
- m_fAngle = atan2(-fMouse.x, fMouse.y);
+ if (m_fMoveSpeed >= 105.f)
+ {
+ m_fMoveSpeed -= fTimeDelta * m_fTimeMult;
+ }
m_fTime += fTimeDelta * m_fTimeMult;
__super::Update(fTimeDelta);
@@ -148,7 +193,8 @@ void CSpellLearn_MovePointer::Late_Update(_float fTimeDelta)
return;
}
if (m_bVisible) {
- m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ if (m_bHover == true)
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
__super::Late_Update(fTimeDelta);
}
}
@@ -237,6 +283,10 @@ HRESULT CSpellLearn_MovePointer::Ready_Components(void* pArg)
return E_FAIL;
}
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLeam_LookPointer))))
+ {
+ return E_FAIL;
+ }
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Overlay.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Overlay.cpp
new file mode 100644
index 000000000..7c04ff286
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Overlay.cpp
@@ -0,0 +1,387 @@
+#include "pch.h"
+#include "SpellLearn_Overlay.h"
+#include "GameInstance.h"
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Overlay::CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_Overlay::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_iImageFrameX = 8;
+ m_iImageFrameY = 8;
+ m_fFrame = 0.2f;
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(-135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_vUVScale.x = 1.f;
+ m_vUVScale.y = 1.f;
+ m_fCoolTime = 5.f;
+ m_fSortZ = 0.01f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ m_iSpellType = ENUM_CLASS(SPELLTYPE::CONTROL);
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ Compute_UI(5);
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Set_SpellLearn(_int Index)
+{
+ Compute_UI(static_cast(m_pOwner)->Get_Learninfo(Index).iSpellID);
+ m_vUVScale.y = 0.f;
+ m_fTrail = 0.f;
+ m_iSpellType = static_cast(m_pOwner)->Get_Learninfo(Index).iSpellType;
+ m_fSpellLearn = _float(static_cast(m_pOwner)->Get_Learninfo(Index).Lines.size());
+ MoveX(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.x);
+ MoveY(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Overlay::Set_Count(_int Index)
+{
+ m_fTrail = _float(Index);
+}
+
+void CSpellLearn_Overlay::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ Update_Trail(fTimeDelta);
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Overlay::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Overlay::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::TYPE))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Overlay::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Overlay::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom1->Bind_ShaderResource(m_pShaderCom, "g_Texture1", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom2->Bind_ShaderResource(m_pShaderCom, "g_Texture2", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom3->Bind_ShaderResource(m_pShaderCom, "g_Texture3", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFrame", &m_fFrame, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountX", &m_iImageFrameX, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iImageCountY", &m_iImageFrameY, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaU", &m_vUVScale.x, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fDeltaV", &m_vUVScale.y, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCoolTime", &m_fCoolTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fImageUV", &m_vUV, sizeof(_float4))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Overlay::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemBack_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_spellmeter_Generic"), reinterpret_cast(&m_pDiffuse_TextureCom1), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_Atlas_Spell"), reinterpret_cast(&m_pDiffuse_TextureCom2), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_tillingSmokes"), reinterpret_cast(&m_pDiffuse_TextureCom3), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_Overlay::Clear()
+{
+ m_vUVScale.y = 1.2f;
+ m_bClear = true;
+}
+
+void CSpellLearn_Overlay::Compute_UI(_uint SpellID)
+{
+ _float2 fImage_Size = { 1024.f, 1792.f };
+
+ _uint iCountX = 4;
+ _uint iCountY = 6;
+
+ _float iImageX = 256.f;
+ _float iImageY = 256.f;
+
+ _uint iframeX = SpellID % iCountX;
+ _uint iframeY = SpellID / iCountX;
+
+ _float2 UVStart;
+ UVStart.x = iframeX * iImageX / fImage_Size.x;
+ UVStart.y = iframeY * iImageY / fImage_Size.y;
+
+ _float2 UVEnd;
+ UVEnd.x = UVStart.x + (iImageX / fImage_Size.x);
+ UVEnd.y = UVStart.y + (iImageY / fImage_Size.y);
+
+ _float4 UV = _float4{ UVStart.x, UVStart.y, UVEnd.x, UVEnd.y };
+ m_vUV = UV;
+}
+
+void CSpellLearn_Overlay::Update_Trail(_float fTimeaDalta)
+{
+ m_vUVScale.y = CMyTools::Lerp_f1D(m_vUVScale.y, m_fTrail / m_fSpellLearn * 1.05f, fTimeaDalta * m_fMoveSpeed);
+}
+
+void CSpellLearn_Overlay::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ static_cast(m_pOwner)->Function_Callback(TEXT("OverrlayClear"));
+ }
+}
+
+CSpellLearn_Overlay* CSpellLearn_Overlay::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Overlay::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Overlay* pInstance = new CSpellLearn_Overlay(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpell_Overlay");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Overlay::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pDiffuse_TextureCom1);
+ SAFE_RELEASE(m_pDiffuse_TextureCom2);
+ SAFE_RELEASE(m_pDiffuse_TextureCom3);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_Overlay::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp
index 928db31af..be6ab523c 100644
--- a/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Panel.cpp
@@ -4,7 +4,11 @@
#include "SpellLearn_Name.h"
#include "SpellLearn.h"
#include "SpellLearn_MovePointer.h"
+#include "SPellLearn_ChaserPointer.h"
#include "SpellLearn_Data.h"
+#include "SpellLearn_Booster.h"
+#include "SpellLearn_Slot.h"
+#include "SpellLearn_Overlay.h"
CSpellLearn_Panel::CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
:CPanelObject(pDevice, pContext)
@@ -45,7 +49,22 @@ HRESULT CSpellLearn_Panel::Initialize(void* pArg)
m_fCanvasAlpha = 1.f;
m_fSortZ = 0.05f;
m_fDelayTime = 1.f;
- static_cast(m_pSpellLearn)->Set_Pointer(static_cast(m_pSpellLearn_MovePointer));
+ static_cast(m_pSpellLearn)->Set_Pointer(
+ static_cast(m_pSpellLearn_MovePointer),
+ static_cast(m_pSpellLearn_ChaserPointer));
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(Get_Learninfo(Index).Booster[i].m128_f32[0],
+ Get_Learninfo(Index).Booster[i].m128_f32[1]);
+ }
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates.push_back(m_State);
+ m_ChaseStates.push_back(m_State);
+ }
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(0);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(0);
Visible(true);
ElementAllVisible(true);
return S_OK;
@@ -56,6 +75,23 @@ const CUIObject::SPELLLEARNINFO CSpellLearn_Panel::Get_Learninfo(_int Index)
return static_cast(m_pSpellLearn_Data)->Get_SpellLearn(Index);
}
+void CSpellLearn_Panel::Set_Learn(_int Index)
+{
+ m_fTime = 0.f;
+ static_cast(m_pSpellLearn)->Change_Image(Index);
+ static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ static_cast(m_pSpellLearn_Overlay)->Set_SpellLearn(Index);
+ static_cast(m_pSpellLearn_Slot)->Set_SpellLearn(Index);
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ static_cast(m_pBooster[i])->Move(Get_Learninfo(Index).Booster[i].m128_f32[0],
+ Get_Learninfo(Index).Booster[i].m128_f32[1]);
+ static_cast(m_pBooster[i])->Reset();
+ }
+}
+
void CSpellLearn_Panel::Priority_Update(_float fTimeDelta)
{
if (!__super::Chack_Visible())
@@ -82,11 +118,90 @@ void CSpellLearn_Panel::Update(_float fTimeDelta)
{
Index++;
}
- static_cast(m_pSpellLearn)->Change_Image(Index);
- static_cast(m_pSpellLearn_MovePointer)->Set_SpellLearn(Index);
- static_cast(m_pSpellLearn_Name)->Set_Name(Index);
+ Set_Learn(Index);
}
+ if (static_cast(m_pSpellLearn_MovePointer)->Get_MoveStart() == true)
+ {
+ m_fTime += fTimeDelta;
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = m_PointerStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x);
+
+ m_PointerStates[i].bHit = bPointer;
+
+ if (m_PointerStates[i].bHit == true && m_PointerStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+
+ if (m_PointerStates[i].bHit == false && m_PointerStates[i].bPerHit == true)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ }
+ }
+
+ for (size_t i = 0; i < m_pBooster.size(); ++i)
+ {
+ m_ChaseStates[i].bPerHit = m_ChaseStates[i].bHit;
+
+ _bool bPointer = Chack_Element(static_cast(m_pBooster[i])->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x);
+
+ m_ChaseStates[i].bHit = bPointer;
+
+ if (m_ChaseStates[i].bHit == true && m_ChaseStates[i].bPerHit == false)
+ {
+ m_Booster.iBoosterIndex = _int(i);
+ m_Booster.bBoosterOn = true;
+ Function_Callback(TEXT("BoosterOff"), &m_Booster);
+ }
+
+ static_cast(m_pSpellLearn_Overlay)->Set_Count(
+ static_cast(m_pSpellLearn_MovePointer)->Get_SpellTrail());
+
+ }
+
+ if (m_fTime >= 1.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_FadeIn();
+ }
+
+ if (m_fTime >= 2.f)
+ {
+ static_cast(m_pSpellLearn_ChaserPointer)->Set_Move();
+
+ if (_bool bPointer = Chack_Element(static_cast(m_pSpellLearn_MovePointer)->Get_Position(),
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Position(),
+ static_cast(m_pSpellLearn_MovePointer)->Get_Current_Size().x,
+ static_cast(m_pSpellLearn_ChaserPointer)->Get_Current_Size().x) == true)
+ {
+ Set_Learn(Index);
+
+ m_Booster.iBoosterIndex = _int(-1);
+ m_Booster.bBoosterOn = false;
+ Function_Callback(TEXT("Booster"), &m_Booster);
+ for (size_t i = 0; i < m_PointerStates.size(); ++i)
+ {
+ m_PointerStates[i].bPerHit = false;
+ m_PointerStates[i].bHit = false;
+ }
+ }
+
+ }
+ }
__super::Update(fTimeDelta);
}
@@ -213,6 +328,36 @@ HRESULT CSpellLearn_Panel::Ready_Element(void* pArg)
}
Add_Element(TEXT("SpellLearn_MovePointer"), m_pSpellLearn_MovePointer);
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_ChaserPointer))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SPellLeam_ChaserPointer"), m_pSpellLearn_ChaserPointer);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Slot))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Slot"), m_pSpellLearn_Slot);
+
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Overlay))))
+ {
+ return E_FAIL;
+ }
+ Add_Element(TEXT("SpellLearn_Overlay"), m_pSpellLearn_Overlay);
+
+ for (_int i = 0; i < 3; ++i)
+ {
+ if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_UI, nullptr, this, reinterpret_cast(&m_pSpellLearn_Booster))))
+ {
+ return E_FAIL;
+ }
+
+ static_cast(m_pSpellLearn_Booster)->Set_Index(i);
+
+ m_pBooster.push_back(m_pSpellLearn_Booster);
+ }
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Editor/Private/SpellLearn_Slot.cpp b/Jusin154_Team3D/Editor/Private/SpellLearn_Slot.cpp
new file mode 100644
index 000000000..f7d879eaf
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Private/SpellLearn_Slot.cpp
@@ -0,0 +1,283 @@
+#include "pch.h"
+#include "SpellLearn_Slot.h"
+#include "GameInstance.h"
+
+CSpellLearn_Slot::CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+ :CElementObject(pDevice, pContext)
+{
+}
+
+CSpellLearn_Slot::CSpellLearn_Slot(const CSpellLearn_Slot& rhs)
+ :CElementObject(rhs)
+{
+}
+
+HRESULT CSpellLearn_Slot::Initialize_Prototype()
+{
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Initialize(void* pArg)
+{
+ CUIObject::UIOBJECT_DESC Desc{};
+
+ Desc.fX = 380.f;
+ Desc.fY = -30.f;
+ Desc.fSizeX = 105.f;
+ Desc.fSizeY = 105.f;
+
+ m_pRect = { long(Desc.fX - Desc.fSizeX * 0.5f), long(Desc.fY - Desc.fSizeY * 0.5f), long(Desc.fX + Desc.fSizeX * 0.5f), long(Desc.fY + Desc.fSizeY * 0.5f) };
+
+ if (FAILED(__super::Initialize(&Desc)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Ready_Components(pArg)))
+ {
+ return E_FAIL;
+ }
+
+ m_fTimeMult = 3.f;
+ m_fAngle = XMConvertToRadians(135.f);
+ m_fAlpha = 1.f;
+ m_fAlphaTime = 1.f;
+ m_fMoveSpeed = 10.f;
+ m_fLerpX = 600.f;
+ m_fLerpY = 100.f;
+ static_cast(m_pOwner)->Add_Function(TEXT("LearnClear"), [this](void* p) {this->Clear(); });
+ return S_OK;
+}
+
+void CSpellLearn_Slot::Priority_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ __super::Priority_Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+
+ if (m_bFadeIn == true)
+ {
+ if (m_fAlpha <= 1.f)
+ m_fAlpha += fTimeDelta * m_fAlphaTime;
+
+ if (m_fAlpha >= 1.f)
+ {
+ m_bFadeIn = false;
+ m_fAlpha = 1.f;
+ }
+ }
+
+ if (m_bFadeOut == true)
+ {
+ if (m_fAlpha >= 0.f)
+ m_fAlpha -= fTimeDelta;
+
+ if (m_fAlpha <= 0.f)
+ {
+ m_bFadeOut = false;
+ m_fAlpha = 0.f;
+ }
+ }
+
+ if (m_bClear == true)
+ {
+ SizeUp(fTimeDelta * m_fTimeMult * m_fMoveSpeed);
+ }
+
+ if (m_fSizeUp == true)
+ {
+ if (Start_Lerp(fTimeDelta * m_fTimeMult * m_fMoveSpeed) == true)
+ {
+ m_fSizeUp = false;
+ }
+ }
+
+ m_fTime += fTimeDelta * m_fTimeMult;
+ __super::Update(fTimeDelta);
+}
+
+void CSpellLearn_Slot::Late_Update(_float fTimeDelta)
+{
+ if (!__super::Chack_Visible())
+ {
+ return;
+ }
+ if (m_bVisible) {
+ m_pGameInstance->Add_RenderGroup(RENDER::UI, this);
+ }
+ __super::Late_Update(fTimeDelta);
+}
+
+HRESULT CSpellLearn_Slot::Render()
+{
+ if (FAILED(Bind_ShaderResources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Begin(ENUM_CLASS(SHADER_PASS_UIEDITOR::SLOT))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Bind_Resources()))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pVIBufferCom->Render()))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+_vector CSpellLearn_Slot::Get_WorldPostion()
+{
+ return m_pTransformCom->Get_State(STATE::POSITION);
+}
+
+HRESULT CSpellLearn_Slot::Bind_ShaderResources()
+{
+ if (FAILED(m_pTransformCom->Bind_ShaderResource(m_pShaderCom, "g_WorldMatrix")))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ViewMatrix", &m_ViewMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", &m_ProjMatrix)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pDiffuse_TextureCom->Bind_ShaderResource(m_pShaderCom, "g_Texture", 0)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fTime", &m_fTime, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAlpha", &m_fAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_iSpellType", &m_iSpellType, sizeof(_int))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fOwnerAlpha", &m_fOwnerAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fCanvasAlpha", &m_fCanvasAlpha, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(m_pShaderCom->Bind_RawValue("g_fAngle", &m_fAngle, sizeof(_float))))
+ {
+ return E_FAIL;
+ }
+ return S_OK;
+}
+
+HRESULT CSpellLearn_Slot::Ready_Components(void* pArg)
+{
+ if (FAILED(Add_Component(g_iStaticLevel, &m_pVIBufferCom)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(ENUM_CLASS(LEVEL::UI), TEXT("Prototype_Texture_UI_T_ActionItemGoldleaf_4K"), reinterpret_cast(&m_pDiffuse_TextureCom), nullptr)))
+ {
+ return E_FAIL;
+ }
+ if (FAILED(Add_Asset_Component(g_iStaticLevel, FX_UIEDITOR, (CComponent**)&m_pShaderCom, nullptr)))
+ {
+ return E_FAIL;
+ }
+
+ return S_OK;
+}
+
+void CSpellLearn_Slot::Set_SpellLearn(_int Index)
+{
+ MoveX(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.x);
+ MoveY(static_cast(m_pOwner)->Get_Learninfo(Index).fEndPosition.y);
+ SizeUpdate(m_fOrigin_Size.x, m_fOrigin_Size.y);
+ m_fSizeUp = false;
+ m_bClear = false;
+}
+
+void CSpellLearn_Slot::Clear()
+{
+ m_bClear = true;
+}
+
+void CSpellLearn_Slot::SizeUp(_float fSizeX)
+{
+ m_fSizeX += fSizeX;
+ m_fSizeY += fSizeX;
+
+ if (160.f <= m_fSizeX + fSizeX)
+ {
+ m_fSizeX = 160.f;
+ m_fSizeY = 160.f;
+ m_bClear = false;
+ m_fSizeUp = true;
+ }
+}
+
+CSpellLearn_Slot* CSpellLearn_Slot::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(pDevice, pContext);
+
+ if (FAILED(pInstance->Initialize_Prototype()))
+ {
+ MSG_BOX("Failed to Created : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+CGameObject* CSpellLearn_Slot::Clone(void* pArg, CGameObject* pOwner)
+{
+ CSpellLearn_Slot* pInstance = new CSpellLearn_Slot(*this);
+ pInstance->m_pOwner = pOwner;
+ if (FAILED(pInstance->Initialize(pArg)))
+ {
+ MSG_BOX("Failed to Cloned : CSpellLearn_Slot");
+ SAFE_RELEASE(pInstance);
+ }
+
+ return pInstance;
+}
+
+void CSpellLearn_Slot::Free()
+{
+ __super::Free();
+
+ SAFE_RELEASE(m_pDiffuse_TextureCom);
+ SAFE_RELEASE(m_pShaderCom);
+ SAFE_RELEASE(m_pVIBufferCom);
+}
+
+void CSpellLearn_Slot::Describe_Entity()
+{
+}
diff --git a/Jusin154_Team3D/Editor/Private/Troll.cpp b/Jusin154_Team3D/Editor/Private/Troll.cpp
index 3b1493807..361d1ed97 100644
--- a/Jusin154_Team3D/Editor/Private/Troll.cpp
+++ b/Jusin154_Team3D/Editor/Private/Troll.cpp
@@ -318,7 +318,7 @@ HRESULT CTroll::Ready_Components()
if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("PHYSX_DYNAMIC_BOX"), (CComponent**)&m_pRigidBody, &Desc))) {
return E_FAIL;
}
- m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor());
+ m_pGameInstance->Detach_Actor(*m_pRigidBody->Get_Actor(), NEXT_LEVEL);
}
//if (FAILED(Add_Asset_Component(g_iStaticLevel, TEXT("STAT_TROLL"), (CComponent**)&m_pStat))) {
diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h
index df9b9d261..b972a447d 100644
--- a/Jusin154_Team3D/Editor/Public/Editor_Define.h
+++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h
@@ -34,7 +34,7 @@ namespace Editor
REVELIO, POTION, MAGIC_ITEM, SPELL_PREVIEW, SPELL_HEADER,
SPELL_HEADER_LINE, SPELL_DRAG, CAMERA_LOCKON, LODING_SCREEN,
ENEMY_HPBAR, BOSS_HPBAR, QUEST_BORDER, QUEST_INFO, QUEST_STATUS, BROOMSTICK,
- SPELL_LEARN, SPELLLEARNCOLOR,
+ SPELL_LEARN, SPELLLEARNCOLOR, SPELLLEARNBOOSTER,
ENEMY_DETECTION, INTERACTION_OBJECT, END };
enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, BLEND, BLEND_NOWORLD, BLOOM, BLOOM_NOWORLD, BLUR_NO_EMMISVE, BLUR_NO_WORLD_NO_EMISSIVE, WEIGHTBLEND_FOR_BLEND, DEPTH_STOP, WB_CULLING, SCREEN_FX , DISTORTION , NONPOS , NONPOS_BLUR, BLUR_MESH, END };
enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, UVALPHABLEND, MAGIC_METER, SPELL_LIST, EESSENTIAL_SPELL_SOLT, EESSENTIAL_SPELL, COLOR, SPELL_HOVER, SPELL_SLOT_EFFECT, SPELL_SLOT, SPELL_LOCK, QUEST_SLOT, END };
@@ -48,7 +48,7 @@ namespace Editor
CONFRINGO, DIFFINDO, EXPELLIARMUS, BOMBARDA, INCENDIO, // 빨간색
DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA, // 하늘색
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, // 연녹색
- AVADA_KEDAVRA, CRUCIO, IMPERIO, // 진녹색
+ AVADAKEDAVRA, CRUCIO, IMPERIO, // 진녹색
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, // 하늘색
JAP, REVELIO, PROTEGO, STUPEFY, // 검은색
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS,
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn.h b/Jusin154_Team3D/Editor/Public/SpellLearn.h
index d7d9db4b4..478448067 100644
--- a/Jusin154_Team3D/Editor/Public/SpellLearn.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn.h
@@ -27,7 +27,11 @@ class CSpellLearn final : public CElementObject
public:
HRESULT Change_Image(_int SpellID);
- void Set_Pointer(class CSpellLearn_MovePointer* Pointer);
+ void Set_Pointer(class CSpellLearn_MovePointer* Pointer, class CSpellLearn_ChaserPointer* Chase);
+
+private:
+ void Clear();
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -35,9 +39,24 @@ class CSpellLearn final : public CElementObject
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
class CSpellLearn_MovePointer* m_pPointer = { nullptr };
+ class CSpellLearn_ChaserPointer* m_pChasePointer = { nullptr };
_float2 m_vPointerPosition{};
_float3 m_vPointerScale{};
+
+ _float2 m_vChasePosition{};
+ _float3 m_vChaseScale{};
+
+ _bool m_bReset{};
+
+ _int m_iIndex{};
+ _int m_iTrailIndex{};
+ vector<_float2> m_Trail;
+
+ _int m_iChaseiTrailIndex{};
+ vector<_float2> m_ChaseTrail;
+ vector<_vector> m_MoveLine;
+
public:
static CSpellLearn* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_Booster.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Booster.h
new file mode 100644
index 000000000..6020654e3
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Booster.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_Booster final : public CElementObject
+{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+private:
+ CSpellLearn_Booster(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Booster(const CSpellLearn_Booster& rhs);
+ virtual ~CSpellLearn_Booster() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void BoosterOn(void* pArg);
+ void BoosterOff(void* pArg);
+
+ void Set_Index(_int iIndex);
+ void Reset();
+
+private:
+ void Clear();
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _bool m_bBoosterOn = { false };
+ _bool m_bBoosterOff = { false };
+ _float4 m_fImagePosi{};
+ _int m_iIndex{};
+public:
+ static CSpellLearn_Booster* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_ChaserPointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_ChaserPointer.h
new file mode 100644
index 000000000..319b5109d
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_ChaserPointer.h
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_ChaserPointer final : public CElementObject
+{
+private:
+ CSpellLearn_ChaserPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_ChaserPointer(const CSpellLearn_ChaserPointer& rhs);
+ virtual ~CSpellLearn_ChaserPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Move();
+private:
+ void Line(_float fTime);
+ void SpeedUp();
+ void Clear();
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+
+public:
+ static CSpellLearn_ChaserPointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_LookPointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_LookPointer.h
new file mode 100644
index 000000000..ca0580012
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_LookPointer.h
@@ -0,0 +1,51 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_LookPointer final : public CElementObject
+{
+private:
+ CSpellLearn_LookPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_LookPointer(const CSpellLearn_LookPointer& rhs);
+ virtual ~CSpellLearn_LookPointer() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+
+ _bool m_bMoveStart = { false };
+
+ _int m_iLineIndex{};
+ _int m_iCurrentLine{};
+ vector<_vector> m_MoveLine;
+ _float m_localX{};
+ _float m_localY{};
+public:
+ static CSpellLearn_LookPointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h
index b3c0b4b60..5a7c44978 100644
--- a/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_MovePointer.h
@@ -7,6 +7,12 @@ NS_BEGIN(Editor)
class CSpellLearn_MovePointer final : public CElementObject
{
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
private:
CSpellLearn_MovePointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_MovePointer(const CSpellLearn_MovePointer& rhs);
@@ -27,23 +33,29 @@ class CSpellLearn_MovePointer final : public CElementObject
public:
void Set_SpellLearn(_int Index);
-
+ _int Get_SpellTrail();
+ _bool Get_MoveStart();
private:
- void Line(_float fTime);
+ void Line(_float fTime, _float2 fMouse);
+ void Set_Booster(void* pArg);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ class SpellLearm_LookPointer* m_pSpellLeam_LookPointer = { nullptr };
_bool m_bMoveStart = { false };
+ _bool m_bBooster = { false };
+
+ Booster m_Booster;
_int m_iLineIndex{};
_int m_iCurrentLine{};
vector<_vector> m_MoveLine;
-
+ vector<_vector> m_Boosters;
public:
static CSpellLearn_MovePointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_Overlay.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Overlay.h
new file mode 100644
index 000000000..a8f0d2a5e
--- /dev/null
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Overlay.h
@@ -0,0 +1,63 @@
+#pragma once
+
+#include "Editor_Define.h"
+#include "ElementObject.h"
+
+NS_BEGIN(Editor)
+
+class CSpellLearn_Overlay final : public CElementObject
+{
+private:
+ CSpellLearn_Overlay(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Overlay(const CSpellLearn_Overlay& rhs);
+ virtual ~CSpellLearn_Overlay() = default;
+
+public:
+ virtual void Priority_Update(_float fTimeDelta);
+ virtual void Update(_float fTimeDelta);
+ virtual void Late_Update(_float fTimeDelta);
+ virtual HRESULT Render() override;
+ virtual _vector Get_WorldPostion() override;
+
+
+private:
+ virtual HRESULT Bind_ShaderResources() override;
+ virtual HRESULT Ready_Components(void* pArg) override;
+ virtual HRESULT Initialize_Prototype() override;
+ virtual HRESULT Initialize(void* pArg) override;
+
+public:
+ void Set_SpellLearn(_int Index);
+ void Set_Count(_int Index);
+
+private:
+ void Clear();
+ void Compute_UI(_uint SpellID);
+ void Update_Trail(_float fTimeaDalta);
+ void SizeUp(_float fSizeX);
+private:
+ CTexture* m_pDiffuse_TextureCom = { nullptr };
+ CTexture* m_pDiffuse_TextureCom1 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom2 = { nullptr };
+ CTexture* m_pDiffuse_TextureCom3 = { nullptr };
+ CShader* m_pShaderCom = { nullptr };
+ CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+
+ _int m_iImageFrameX{};
+ _int m_iImageFrameY{};
+ _float m_fFrame{};
+ _float4 m_vUV{};
+
+ _float m_fSpellLearn{};
+ _float m_fTrail{};
+ _float m_fTargetTrail{};
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
+public:
+ static CSpellLearn_Overlay* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
+ virtual void Free() override;
+ void Describe_Entity() override;
+};
+
+NS_END
diff --git a/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h
index 5405b5c18..6e2fd4bd5 100644
--- a/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Panel.h
@@ -11,7 +11,17 @@ NS_BEGIN(Editor)
class CSpellLearn_Panel final : public CPanelObject
{
-
+private:
+ struct Booster
+ {
+ _bool bBoosterOn = { false };
+ _int iBoosterIndex{};
+ };
+ struct State
+ {
+ _bool bHit = { false };
+ _bool bPerHit = { false };
+ };
private:
CSpellLearn_Panel(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CSpellLearn_Panel(const CSpellLearn_Panel& rhs);
@@ -34,6 +44,8 @@ class CSpellLearn_Panel final : public CPanelObject
public:
virtual const SPELLLEARNINFO Get_Learninfo(_int Index) override;
+ void Set_Learn(_int Index);
+
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CTexture* m_pDiffuse_TextureCom1 = { nullptr };
@@ -45,10 +57,19 @@ class CSpellLearn_Panel final : public CPanelObject
CGameObject* m_pSpellLearn_Name = { nullptr };
CGameObject* m_pSpellLearn = { nullptr };
CGameObject* m_pSpellLearn_MovePointer = { nullptr };
+ CGameObject* m_pSpellLearn_ChaserPointer = { nullptr };
CGameObject* m_pSpellLearn_Data = { nullptr };
+ CGameObject* m_pSpellLearn_Booster = { nullptr };
+ CGameObject* m_pSpellLearn_Slot= { nullptr };
+ CGameObject* m_pSpellLearn_Overlay = { nullptr };
_int Index{};
+ vector m_pBooster;
+ Booster m_Booster;
+ State m_State;
+ vector m_PointerStates;
+ vector m_ChaseStates;
public:
static CSpellLearn_Panel* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
diff --git a/Jusin154_Team3D/Editor/Public/SPellLeam_SpeedPointer.h b/Jusin154_Team3D/Editor/Public/SpellLearn_Slot.h
similarity index 64%
rename from Jusin154_Team3D/Editor/Public/SPellLeam_SpeedPointer.h
rename to Jusin154_Team3D/Editor/Public/SpellLearn_Slot.h
index a2c881d6d..d8b8382e6 100644
--- a/Jusin154_Team3D/Editor/Public/SPellLeam_SpeedPointer.h
+++ b/Jusin154_Team3D/Editor/Public/SpellLearn_Slot.h
@@ -5,12 +5,12 @@
NS_BEGIN(Editor)
-class CSPellLeam_SpeedPointer final : public CElementObject
+class CSpellLearn_Slot final : public CElementObject
{
private:
- CSPellLeam_SpeedPointer(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
- CSPellLeam_SpeedPointer(const CSPellLeam_SpeedPointer& rhs);
- virtual ~CSPellLeam_SpeedPointer() = default;
+ CSpellLearn_Slot(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ CSpellLearn_Slot(const CSpellLearn_Slot& rhs);
+ virtual ~CSpellLearn_Slot() = default;
public:
virtual void Priority_Update(_float fTimeDelta);
@@ -19,19 +19,28 @@ class CSPellLeam_SpeedPointer final : public CElementObject
virtual HRESULT Render() override;
virtual _vector Get_WorldPostion() override;
+
private:
virtual HRESULT Bind_ShaderResources() override;
virtual HRESULT Ready_Components(void* pArg) override;
virtual HRESULT Initialize_Prototype() override;
virtual HRESULT Initialize(void* pArg) override;
+public:
+ void Set_SpellLearn(_int Index);
+ void Clear();
+
+private:
+ void SizeUp(_float fSizeX);
private:
CTexture* m_pDiffuse_TextureCom = { nullptr };
CShader* m_pShaderCom = { nullptr };
CVIBuffer_Rect* m_pVIBufferCom = { nullptr };
+ _bool m_bClear = { false };
+ _bool m_fSizeUp = { false };
public:
- static CSPellLeam_SpeedPointer* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ static CSpellLearn_Slot* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, class CGameObject* pOwner) override;
virtual void Free() override;
void Describe_Entity() override;
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
index 444f13d38..fb7ab27eb 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Engine_Shader_Functions.hlsli
@@ -190,6 +190,51 @@ PBR_LIGHT_OUT PBR_Lighting(
return Out;
}
+bool CalcLighting(
+ in Texture2D SurfaceTexture2D,
+ in float fTagDepthBlue,
+ in float2 uv,
+ in float3 vAlbedo,
+ inout float3 vF0,
+ inout float fMetallic,
+ inout float fRoughness,
+ inout float fOcclusion,
+ inout float fAttenuation)
+{
+ bool bResult = false;
+ if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
+ {
+ bResult = true;
+ float3 vMRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ fMetallic = vMRO.r;
+ fRoughness = vMRO.g;
+ fOcclusion = vMRO.b;
+
+ vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float3 vSRO = SurfaceTexture2D.Sample(DefaultSampler, uv).rgb;
+ vF0 = vSRO.rrr;
+ fRoughness = vSRO.g;
+ fOcclusion = vSRO.b;
+ }
+ else if (true == AlmostEqual3(fTagDepthBlue * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY)) // Specular Roughness SubSurfaceScattering Occlusion
+ {
+ bResult = true;
+ fMetallic = 0.f;
+
+ float4 vSRXO = SurfaceTexture2D.Sample(DefaultSampler, uv);
+ vF0 = vSRXO.rrr;
+ fRoughness = vSRXO.g;
+ fOcclusion = vSRXO.a;
+ }
+ return bResult;
+}
+
float GetBloomCurve(float x, float fThreshold, uint iMethod)
{
float fResult = x;
diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
index 05ce2cc23..4a596b98f 100644
--- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
+++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl
@@ -455,42 +455,14 @@ PS_OUT_LIGHT PS_MAIN_DIRECTIONAL(PS_IN In)
float3 vToView = normalize(g_vCamPosition.xyz - vWorldPosition.xyz); // 픽셀에서 카메라로
float3 vToLight = normalize(-g_vLightDir.xyz); // 픽셀에서 라이트로
-
-
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic Roughness Occ
- {
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular Roughness Occ
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 디렉셔널
@@ -569,37 +541,10 @@ PS_OUT_LIGHT PS_MAIN_POINT(PS_IN In)
return Out;
}
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
@@ -697,40 +642,14 @@ PS_OUT_LIGHT PS_MAIN_SPOT(PS_IN In)
fSpotAttenenuation *= fSpotAttenenuation;
fAttenuation *= fSpotAttenenuation;
- if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_METALNESS)) // Metallic
+ if (false == CalcLighting(g_SurfaceTexture, vDepth.b, uv, vAlbedo, vF0, fMetallic, fRoughness, fOcclusion, fAttenuation))
{
- float3 vMRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- fMetallic = vMRO.r;
- fRoughness = vMRO.g;
- fOcclusion = vMRO.b;
-
- vF0 = lerp(float3(0.04f, 0.04f, 0.04f), vAlbedo, fMetallic);
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_SPECULAR)) // Specular
- {
- fMetallic = 0.f;
-
- float3 vSRO = g_SurfaceTexture.Sample(DefaultSampler, uv).rgb;
- vF0 = vSRO.rrr;
- fRoughness = vSRO.g;
- fOcclusion = vSRO.b;
- }
- else if (true == AlmostEqual3(vDepth.b * AI_TEXTURE_TYPE_MAX, AI_TEXTURE_TYPE_ANISOTROPY))
- {
- fMetallic = 0.f;
-
- float4 vSRXO = g_SurfaceTexture.Sample(DefaultSampler, uv);
- vF0 = vSRXO.rrr;
- fRoughness = vSRXO.g;
- fOcclusion = vSRXO.a;
- }
- else // basic Lighting(phong blinn) // if you were here, you miss some assets.
- {
- Out.vShade = fAttenuation * (g_vLightDiffuse * saturate(max(dot(vToLight * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient)));
- Out.vSpecular = fAttenuation * ((g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f));
+ Out.vShade = g_vLightDiffuse * saturate(max(dot(normalize(g_vLightDir.xyz) * -1.f, vNormal), 0.f) + (fSSAO_AmbientOcclusion * g_vLightAmbient * g_vMtrlAmbient));
+ Out.vSpecular = (g_vLightSpecular * g_vMtrlSpecular) * pow(max(dot(vToView * -1.f, vToLight), 0.f), 50.f);
Out.vSpecular.a = 0.f;
return Out;
}
+
float fTotalOcclusion = saturate(fOcclusion * fSSAO_AmbientOcclusion);
{ // 수치조정 // 점광원
diff --git a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
index cdbbbbff8..3c0beb9d4 100644
--- a/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
+++ b/Jusin154_Team3D/Engine/Private/Character_Controller.cpp
@@ -151,7 +151,7 @@ HRESULT CCharacter_Controller::ConvertToDO(CRigidBody_Dynamic& BodyOriginal)
m_bActive = false;
BodyOriginal.SetActive(true);
- m_pGameInstance->Attach_Actor(*pDOActor); // DO 액터 활성화
+ m_pGameInstance->Attach_Actor(*pDOActor, m_pGameInstance->Get_CurrentLevelID()); // DO 액터 활성화
PSX::PxTransform pxTransform = pCCTActor->getGlobalPose();
pDOActor->setGlobalPose(pxTransform);
diff --git a/Jusin154_Team3D/Engine/Private/ElementObject.cpp b/Jusin154_Team3D/Engine/Private/ElementObject.cpp
index 92e573c9f..3e70c723b 100644
--- a/Jusin154_Team3D/Engine/Private/ElementObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/ElementObject.cpp
@@ -158,6 +158,46 @@ _bool CElementObject::Start_Lerp(_float fTimeDelta)
}
}
+_bool CElementObject::Start_Lerp_Speed(_float fTimeDelta, _float2 MousePoint)
+{
+ _vector Mouse = XMVectorSet(MousePoint.x, MousePoint.y, 1.f, 1.f);
+ _vector Pos = m_fCurrent_Position;
+ _vector Target = m_vLerp_Position;
+
+ _vector Dir = XMVectorSubtract(Target, Pos);
+ _vector MouseDir = XMVectorSubtract(Mouse, Pos);
+
+ _vector NorDir = XMVector3Normalize(Dir);
+ _vector NorMouse = XMVector3Normalize(MouseDir);
+
+ _float SameDir = XMVectorGetX(XMVector3Dot(NorDir, NorMouse));
+ _float Weight = max(0.5f, SameDir);
+ _vector LenVec = XMVector3Length(Dir);
+ _float Distance = XMVectorGetX(LenVec);
+
+ _float move = m_fMoveSpeed * fTimeDelta * Weight;
+
+ if (Distance <= move)
+ {
+ m_fX = m_vLerp_Position.m128_f32[0];
+ m_fY = m_vLerp_Position.m128_f32[1];
+ return true;
+ }
+
+ else
+ {
+ XMVECTOR DirNorm = XMVector3Normalize(Dir);
+ m_fX = (Pos + DirNorm * move).m128_f32[0];
+ m_fY = (Pos + DirNorm * move).m128_f32[1];
+ return false;
+ }
+}
+
+_bool CElementObject::Set_Trgger()
+{
+ return _bool();
+}
+
void CElementObject::Reset_Pos(_float fTimeDelta)
{
_vector Pos = m_fCurrent_Position;
diff --git a/Jusin154_Team3D/Engine/Private/GameInstance.cpp b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
index d2908f2e2..436b86087 100644
--- a/Jusin154_Team3D/Engine/Private/GameInstance.cpp
+++ b/Jusin154_Team3D/Engine/Private/GameInstance.cpp
@@ -100,7 +100,7 @@ HRESULT CGameInstance::Initialize_Engine(const ENGINE_DESC& EngineDesc, ID3D11De
if (nullptr == m_pCollider_Manager) {
return E_FAIL;
}
- m_pPhysX_Manager = CPhysX_Manager::Create(*ppDevice, *ppContext);
+ m_pPhysX_Manager = CPhysX_Manager::Create(*ppDevice, *ppContext, EngineDesc.iNumLevels);
if (nullptr == m_pPhysX_Manager) {
return E_FAIL;
}
@@ -177,6 +177,7 @@ void CGameInstance::Clear_Resources(_uint iLevelIndex)
m_pObject_Manager->Clear(iLevelIndex);
m_pLight_Manager->Light_Clear(iLevelIndex);
m_pResource_Manager->Clear_LevelResources(iLevelIndex);
+ m_pPhysX_Manager->ClearScene(iLevelIndex);
}
_float CGameInstance::Random_Normal()
@@ -685,6 +686,11 @@ void CGameInstance::Render_PreShadow(const _float4x4& ViewMatrix, const _float4x
return m_pRenderer->Render_PreShadow(ViewMatrix, ProjMatrix);
}
+RENDER CGameInstance::Get_CurrentRenderPass()
+{
+ return m_pRenderer->Get_CurrentRenderPass();
+}
+
HRESULT CGameInstance::Bind_PreShadowMatrix(CShader* pShader, const _char* pConstants, D3DTS eType)
{
return m_pRenderer->Bind_PreShadowMatrix(pShader, pConstants, eType);
@@ -840,9 +846,9 @@ HRESULT CGameInstance::Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11Depth
return m_pRenderTarget_Manager->Begin_MRT_NonClear(strMRTTag, pDSV);
}
-HRESULT CGameInstance::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV)
+HRESULT CGameInstance::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV, _bool isClear)
{
- return m_pRenderTarget_Manager->Begin_MRT_Include_BackBuffer(strMRTTag, pDSV);
+ return m_pRenderTarget_Manager->Begin_MRT_Include_BackBuffer(strMRTTag, pDSV , isClear);
}
HRESULT CGameInstance::Begin_MRT_NO_DepthStencil(const _wstring& strMRTTag)
@@ -976,27 +982,27 @@ PSX::PxMaterial* CGameInstance::Create_Material(_float3* vMatInfo)
return m_pPhysX_Manager->Create_Material(vMatInfo);
}
-void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
+void CGameInstance::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel)
{
- return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh);
+ return m_pPhysX_Manager->RegistTriMesh(pName, pPxTriMesh, iLevel);
}
-void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc)
+void CGameInstance::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel)
{
- return m_pPhysX_Manager->RegistHeight(pName, Desc);
+ return m_pPhysX_Manager->RegistHeight(pName, Desc, iLevel);
}
-PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody)
+PSX::PxRigidDynamic* CGameInstance::Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel)
{
- return m_pPhysX_Manager->Add_DynamicActor(RigidBody);
+ return m_pPhysX_Manager->Add_DynamicActor(RigidBody, iLevel);
}
-PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody_Static& RigidBody)
+PSX::PxRigidStatic* CGameInstance::Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel)
{
- return m_pPhysX_Manager->Add_StaticActor(RigidBody);
+ return m_pPhysX_Manager->Add_StaticActor(RigidBody, iLevel);
}
-PSX::PxRevoluteJoint* CGameInstance::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame)
+PSX::PxRevoluteJoint* CGameInstance::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel)
{
- return m_pPhysX_Manager->Create_PxRevoluteJoint(pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame);
+ return m_pPhysX_Manager->Create_PxRevoluteJoint(pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame, iLevel);
}
_bool CGameInstance::SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer)
{
@@ -1030,17 +1036,17 @@ void CGameInstance::ReleaseController(_uint iControllerIndex)
{
m_pPhysX_Manager->ReleaseController(iControllerIndex);
}
-void CGameInstance::Attach_Actor(PSX::PxActor& Actor)
+void CGameInstance::Attach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- m_pPhysX_Manager->Attach_Actor(Actor);
+ m_pPhysX_Manager->Attach_Actor(Actor, iLevel);
}
-void CGameInstance::Detach_Actor(PSX::PxActor& Actor)
+void CGameInstance::Detach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- m_pPhysX_Manager->Detach_Actor(Actor);
+ m_pPhysX_Manager->Detach_Actor(Actor, iLevel);
}
-void CGameInstance::Release_Actor(PSX::PxActor& Actor)
+void CGameInstance::Release_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- m_pPhysX_Manager->Detach_Actor(Actor);
+ m_pPhysX_Manager->Detach_Actor(Actor, iLevel);
}
HRESULT CGameInstance::ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix)
{
diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp
index 48ff6fecc..50fb252d2 100644
--- a/Jusin154_Team3D/Engine/Private/Model.cpp
+++ b/Jusin154_Team3D/Engine/Private/Model.cpp
@@ -175,7 +175,7 @@ _bool CModel::Play_Anim(_float fTimeDelta, CTransform* pTransform)
}
- ComputeAnimation(m_iCurrentAnimIndex, 0);
+ ComputeAnimation(m_iCurrentAnimIndex, m_iIndexAnimPlayableMesh);
if (m_bIsFinishedAnim)
{
@@ -480,7 +480,8 @@ void CModel::Update_RootBone(_float Amount)
XMStoreFloat4(&axis, axisWorld);
swap(axis.z, axis.y);
- m_pTransform->TurnAngle(XMLoadFloat4(&axis), angle);
+ if (m_bRootBone)
+ m_pTransform->TurnAngle(XMLoadFloat4(&axis), angle);
}
XMStoreFloat4(&m_vPrevRootRot, qCur);
@@ -673,7 +674,7 @@ HRESULT CModel::Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIn
return S_OK;
}
-HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix)
+HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel)
{
m_iNumPhysXMeshes = m_iNumMeshes;
@@ -682,7 +683,7 @@ HRESULT CModel::Ready_PhysXMeshes(_fmatrix& PreTransformMatrix)
m_pGameInstance->ConvertToTriMeshes(m_Meshes, m_TriMeshes, PreTransformMatrix);
for (_uint i = 0; i < m_iNumMeshes; ++i) {
- m_pGameInstance->RegistTriMesh((m_Meshes[i]->Get_Name() + to_string(i)).c_str(), m_TriMeshes[i]);
+ m_pGameInstance->RegistTriMesh((m_Meshes[i]->Get_Name() + to_string(i)).c_str(), m_TriMeshes[i], iLevel);
}
return S_OK;
}
@@ -2232,14 +2233,29 @@ HRESULT CModel::Initialize(void* pArg)
Create_ParentSrv();
Create_BoneLocalSrv();
- if (FAILED(Create_ComputeShaderLocal()))
+ if (FAILED(Create_ComputeShaderLocal())){
return E_FAIL;
+ }
- if (FAILED(Create_ComputeShader()))
+ if (FAILED(Create_ComputeShader())){
return E_FAIL;
+ }
+
+ for (int i = 0; i < m_Meshes.size(); i++)
+ {
+ if (1 < m_Meshes[i]->Get_NumBone()) {
+ m_iIndexAnimPlayableMesh = i;
+ break;
+ }
+ }
+ if (-1 == m_iIndexAnimPlayableMesh) {
+
+ assert(false);
+ }
}
+
return S_OK;
}
diff --git a/Jusin154_Team3D/Engine/Private/PanelObject.cpp b/Jusin154_Team3D/Engine/Private/PanelObject.cpp
index ea19fd18c..df16b10e4 100644
--- a/Jusin154_Team3D/Engine/Private/PanelObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/PanelObject.cpp
@@ -183,6 +183,19 @@ _bool CPanelObject::Chack_Visible()
return m_bVisible;
}
+_bool CPanelObject::Chack_Element(_float2 Position, _float2 Target, _float Scale, _float TargetScale)
+{
+ _vector vPos = XMVectorSet(Position.x, Position.y, 0.f, 1.f);
+ _vector vTarget = XMVectorSet(Target.x, Target.y, 0.f, 1.f);
+
+ _float Dir = XMVectorGetX(XMVector3Length(XMVectorSubtract(vTarget, vPos)));
+
+ if (Dir <= (Scale * 0.5f) + (TargetScale * 0.5f))
+ return true;
+
+ return false;
+}
+
CGameObject* CPanelObject::Find_Element(const wstring& Name)
{
auto iter = m_Elements_map.find(Name);
diff --git a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
index 5fb6c95fd..700a137c2 100644
--- a/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/PhysX_Manager.cpp
@@ -16,7 +16,7 @@ CPhysX_Manager::CPhysX_Manager(ID3D11Device* pDevice, ID3D11DeviceContext* pCont
SAFE_ADDREF(m_pGameInstance);
}
-PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidBody)
+PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel)
{
_matrix WorldMatrix = RigidBody.Get_TransformPtr()->Get_XMWorldMatrix();
PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
@@ -58,13 +58,13 @@ PSX::PxRigidDynamic* CPhysX_Manager::Add_DynamicActor(CRigidBody_Dynamic& RigidB
PSX::PxRigidBodyExt::updateMassAndInertia(*pActorDynamic, (PSX::PxReal)RigidBody.Get_Density());
- m_pRestBodies.insert(pActorDynamic);
- Attach_Actor(*pActorDynamic);
+ m_pRestBodies[iLevel].insert(pActorDynamic);
+ Attach_Actor(*pActorDynamic, iLevel);
return pActorDynamic;
}
-PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody)
+PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel)
{
_matrix WorldMatrix = RigidBody.Get_TransformPtr()->Get_XMWorldMatrix();
PSX::PxTransform pxWorldMatrix = XMWorldToPx_NoScale(WorldMatrix);
@@ -80,7 +80,7 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
break;
case ACTOR::TRIANGLEMESH:
{ // SetUp Geometry
- PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey());
+ PSX::PxTriangleMesh* pPxMesh = Find_TriangleMesh(RigidBody.Get_PxMeshKey(), iLevel);
PSX::PxTriangleMeshGeometry* pPxMeshGeometry = { nullptr };
_vector vPos, vRotq, vScale;
@@ -101,26 +101,26 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
// 유효성 체크
PX_ASSERT(pPxMeshGeometry->isValid());
pGeometry = pPxMeshGeometry;
- _bool bEmplaceSuccess = m_TriangleMeshGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry).second;
+ _bool bEmplaceSuccess = m_TriangleMeshGeometry[iLevel].emplace(RigidBody.Get_PxMeshKey(), pPxMeshGeometry).second;
if (false == bEmplaceSuccess) {
Safe_Delete(pPxMeshGeometry);
- pGeometry = (*m_TriangleMeshGeometry.find(RigidBody.Get_PxMeshKey())).second;
+ pGeometry = (*m_TriangleMeshGeometry[iLevel].find(RigidBody.Get_PxMeshKey())).second;
}
}
break;
case ACTOR::HEIGHTFIELD:
{ // SetUp HeightField
- PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey());
+ PSX::PxHeightField* pHeightField = Find_HeightField(RigidBody.Get_PxMeshKey(), iLevel);
PSX::PxHeightFieldGeometry* pPxHeightGeometry = new PSX::PxHeightFieldGeometry(pHeightField);
pPxHeightGeometry->heightScale = 0.01f/* 기본 정밀도 100배 0.01 -> 1cm, 1 -> 1m */;
// 유효성 체크
PX_ASSERT(pPxHeightGeometry->isValid());
pGeometry = pPxHeightGeometry;
- _bool bEmplaceSuccess = m_HeightFieldGeometry.emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry).second;
+ _bool bEmplaceSuccess = m_HeightFieldGeometry[iLevel].emplace(RigidBody.Get_PxMeshKey(), pPxHeightGeometry).second;
if (false == bEmplaceSuccess) {
Safe_Delete(pPxHeightGeometry);
- pGeometry = (*m_HeightFieldGeometry.find(RigidBody.Get_PxMeshKey())).second;
+ pGeometry = (*m_HeightFieldGeometry[iLevel].find(RigidBody.Get_PxMeshKey())).second;
}
}
break;
@@ -135,13 +135,13 @@ PSX::PxRigidStatic* CPhysX_Manager::Add_StaticActor(CRigidBody_Static& RigidBody
pShape->setContactOffset(RigidBody.Get_ContactOffset());
pShape->setRestOffset(0.f);
- m_pRestBodies.insert(pActor);
- Attach_Actor(*pActor);
+ m_pRestBodies[iLevel].insert(pActor);
+ Attach_Actor(*pActor, iLevel);
return pActor;
}
-PSX::PxRevoluteJoint* CPhysX_Manager::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame)
+PSX::PxRevoluteJoint* CPhysX_Manager::Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel)
{
PSX::PxRevoluteJoint* pJoint = PSX::PxRevoluteJointCreate(*m_pPhysics, pActorFrame, pxLocalWallFrame, pActorObject, pxLocalActorFrame);
@@ -229,18 +229,18 @@ bool CPhysX_Manager::RayCast(_fvector _vStartPos, _gvector _vDir, _float fDistan
}
-void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh)
+void CPhysX_Manager::RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel)
{
- m_TriangleMeshes.emplace(CMyTools::ToWstring(pName), pPxTriMesh);
+ m_TriangleMeshes[iLevel].emplace(CMyTools::ToWstring(pName), pPxTriMesh);
}
-void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc)
+void CPhysX_Manager::RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel)
{
PSX::PxHeightField* pHeightField = PxCreateHeightField(Desc);
if (nullptr == pHeightField) {
assert(false);
}
else {
- m_HeightFields.emplace(pName, pHeightField);
+ m_HeightFields[iLevel].emplace(pName, pHeightField);
}
}
@@ -347,19 +347,19 @@ HRESULT CPhysX_Manager::LoadTriMeshes(const _char* pPath, vector::iterator iter = m_TriangleMeshes.find(pMeshName);
- if (iter != m_TriangleMeshes.end()) {
+ map<_wstring, PSX::PxTriangleMesh*>::iterator iter = m_TriangleMeshes[iLevel].find(pMeshName);
+ if (iter != m_TriangleMeshes[iLevel].end()) {
return iter->second;
}
return nullptr;
}
-PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName)
+PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName, _uint iLevel)
{
- map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields.find(pFieldName);
- if (iter != m_HeightFields.end()) {
+ map<_wstring, PSX::PxHeightField*>::iterator iter = m_HeightFields[iLevel].find(pFieldName);
+ if (iter != m_HeightFields[iLevel].end()) {
return iter->second;
}
return nullptr;
@@ -367,17 +367,19 @@ PSX::PxHeightField* CPhysX_Manager::Find_HeightField(const _tchar* pFieldName)
void CPhysX_Manager::Update_Kinematic()
{
- for (auto& pBody : m_pActiveBodys) {
- PSX::PxRigidDynamic* pActor = pBody->is();
- if (nullptr == pActor) {
- continue;
- }
+ for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
+ for (auto& pBody : m_pActiveBodys[iLevel]) {
+ PSX::PxRigidDynamic* pActor = pBody->is();
+ if (nullptr == pActor) {
+ continue;
+ }
- if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
- {
- const CTransform* pTransform = static_cast(pBody->userData)->pOwner->Get_Component();
-
- pActor->setKinematicTarget(XMWorldToPx_NoScale(pTransform->Get_XMWorldMatrix()));
+ if (pActor->getRigidBodyFlags() & PSX::PxRigidBodyFlag::eKINEMATIC)
+ {
+ const CTransform* pTransform = static_cast(pBody->userData)->pOwner->Get_Component();
+
+ pActor->setKinematicTarget(XMWorldToPx_NoScale(pTransform->Get_XMWorldMatrix()));
+ }
}
}
}
@@ -429,40 +431,56 @@ void CPhysX_Manager::Update_Dynamic_ActiveActors()
}
}
-void CPhysX_Manager::ClearScene()
+void CPhysX_Manager::ClearScene(_uint iLevel)
{
- for (auto& pBody : m_pActiveBodys) {
+ for (auto& pBody : m_pActiveBodys[iLevel]) {
pBody->release();
- } m_pActiveBodys.clear();
- for (auto& pBody : m_pRestBodies) {
+ } m_pActiveBodys[iLevel].clear();
+ for (auto& pBody : m_pRestBodies[iLevel]) {
pBody->release();
- } m_pRestBodies.clear();
+ } m_pRestBodies[iLevel].clear();
+ for (auto& pMeshes : m_TriangleMeshes[iLevel]) {
+ pMeshes.second->release();
+ } m_TriangleMeshes[iLevel].clear();
+
+ for (auto& pGeometry : m_TriangleMeshGeometry[iLevel]) {
+ Safe_Delete(pGeometry.second);
+ } m_TriangleMeshGeometry[iLevel].clear();
+
+ for (auto& pGeometry : m_HeightFieldGeometry[iLevel]) {
+ Safe_Delete(pGeometry.second);
+ } m_HeightFieldGeometry[iLevel].clear();
+
+ for (auto& pField : m_HeightFields[iLevel]) {
+ pField.second->release();
+ } m_HeightFields[iLevel].clear();
+
}
-void CPhysX_Manager::Attach_Actor(PSX::PxActor& Actor)
+void CPhysX_Manager::Attach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- unordered_set::iterator iter = m_pRestBodies.find(&Actor);
- if (m_pRestBodies.end() == iter) {
+ unordered_set::iterator iter = m_pRestBodies[iLevel].find(&Actor);
+ if (m_pRestBodies[iLevel].end() == iter) {
return;
}
else {
- m_pRestBodies.erase(&Actor);
+ m_pRestBodies[iLevel].erase(&Actor);
}
- m_pActiveBodys.insert(&Actor);
+ m_pActiveBodys[iLevel].insert(&Actor);
if (m_pScene != nullptr) {
m_pScene->addActor(Actor);
}
}
-unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor& Actor)
+unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor& Actor, _uint iLevel)
{
- unordered_set::iterator iterOut = m_pRestBodies.end();
- unordered_set::iterator iter = m_pActiveBodys.find(&Actor);
- if (m_pActiveBodys.end() != iter) {
- m_pActiveBodys.erase(iter); // 액터를 활성화 맵에서 분리 해주고
- iterOut = m_pRestBodies.insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌
+ unordered_set::iterator iterOut = m_pRestBodies[iLevel].end();
+ unordered_set::iterator iter = m_pActiveBodys[iLevel].find(&Actor);
+ if (m_pActiveBodys[iLevel].end() != iter) {
+ m_pActiveBodys[iLevel].erase(iter); // 액터를 활성화 맵에서 분리 해주고
+ iterOut = m_pRestBodies[iLevel].insert(&Actor).first; // 액터를 다시 쓸 수 있기 때문에 따로 보관해줌
}
- PSX::PxScene* pOwnerScene = Actor.getScene();
+ PSX::PxScene* pOwnerScene = Actor.getScene();
if (pOwnerScene == nullptr) { // 액터가 씬에 없는 경우 nullptr이 나옴
return iterOut;
@@ -476,16 +494,16 @@ unordered_set::iterator CPhysX_Manager::Detach_Actor(PSX::PxActor
return iterOut;
}
-void CPhysX_Manager::Release_Actor(PSX::PxActor& Actor)
+void CPhysX_Manager::Release_Actor(PSX::PxActor& Actor, _uint iLevel)
{
// 혹시 활성화 맵에 들어있을 수도 있으니 검사
- unordered_set::iterator iterResult = Detach_Actor(Actor);
- if (m_pRestBodies.end() != iterResult) { // 방금 전까지만 해도 활성화 중이었던 액터 라면
- m_pRestBodies.erase(iterResult); // 바로 지워줌
+ unordered_set::iterator iterResult = Detach_Actor(Actor, iLevel);
+ if (m_pRestBodies[iLevel].end() != iterResult) { // 방금 전까지만 해도 활성화 중이었던 액터 라면
+ m_pRestBodies[iLevel].erase(iterResult); // 바로 지워줌
}
else {
- m_pActiveBodys.erase(&Actor);
- m_pRestBodies.erase(&Actor);
+ m_pActiveBodys[iLevel].erase(&Actor);
+ m_pRestBodies[iLevel].erase(&Actor);
}
Actor.release();
}
@@ -535,8 +553,9 @@ HRESULT CPhysX_Manager::PurgeAllController()
}
-HRESULT CPhysX_Manager::Initialize()
+HRESULT CPhysX_Manager::Initialize(_uint iLevel)
{
+ m_iMaxLevel = iLevel;
m_pFoundation = PxCreateFoundation(PX_PHYSICS_VERSION, m_AllocatorCallBack, m_ErrorCallBack);
if (nullptr == m_pFoundation) {
assert(false);
@@ -633,6 +652,13 @@ HRESULT CPhysX_Manager::Initialize()
pGroundPlane->setName("PHYSX_MANAGER_PLANE");
m_pScene->addActor(*pGroundPlane);
+ m_pActiveBodys = new unordered_set[m_iMaxLevel]();
+ m_pRestBodies = new unordered_set[m_iMaxLevel]();
+ m_TriangleMeshes = new map<_wstring, PSX::PxTriangleMesh*>[m_iMaxLevel]();
+ m_TriangleMeshGeometry = new map<_wstring, PSX::PxTriangleMeshGeometry*>[m_iMaxLevel]();
+ m_HeightFields = new map<_wstring, PSX::PxHeightField*>[m_iMaxLevel]();
+ m_HeightFieldGeometry = new map<_wstring, PSX::PxHeightFieldGeometry*>[m_iMaxLevel]();
+
return S_OK;
}
#ifdef _DEBUG
@@ -660,10 +686,10 @@ HRESULT CPhysX_Manager::Connect_DebugServer()
#endif // _DEBUG
-CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext)
+CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iLevel)
{
CPhysX_Manager* pInstance = new CPhysX_Manager(pDevice, pContext);
- if (FAILED(pInstance->Initialize())) {
+ if (FAILED(pInstance->Initialize(iLevel))) {
SAFE_RELEASE(pInstance);
assert(false);
}
@@ -672,24 +698,22 @@ CPhysX_Manager* CPhysX_Manager::Create(ID3D11Device* pDevice, ID3D11DeviceContex
void CPhysX_Manager::Free()
{
- ClearScene();
+ for (_uint iLevel = 0; iLevel < m_iMaxLevel; ++iLevel) {
+ ClearScene(iLevel);
+ m_pActiveBodys[iLevel].clear();
+ m_pRestBodies[iLevel].clear();
+ m_TriangleMeshes[iLevel].clear();
+ m_TriangleMeshGeometry[iLevel].clear();
+ m_HeightFields[iLevel].clear();
+ m_HeightFieldGeometry[iLevel].clear();
+ }
+ Safe_Delete_Array(m_pActiveBodys);
+ Safe_Delete_Array(m_pRestBodies);
+ Safe_Delete_Array(m_TriangleMeshes);
+ Safe_Delete_Array(m_TriangleMeshGeometry);
+ Safe_Delete_Array(m_HeightFields);
+ Safe_Delete_Array(m_HeightFieldGeometry);
- for (auto& pMeshes : m_TriangleMeshes) {
- pMeshes.second->release();
- } m_TriangleMeshes.clear();
-
- for (auto& pGeometry : m_TriangleMeshGeometry) {
- Safe_Delete(pGeometry.second);
- } m_TriangleMeshGeometry.clear();
-
- for (auto& pGeometry : m_HeightFieldGeometry) {
- Safe_Delete(pGeometry.second);
- } m_HeightFieldGeometry.clear();
-
- for (auto& pField : m_HeightFields) {
- pField.second->release();
- } m_HeightFields.clear();
-
if (nullptr != m_pCookingParam) {
Safe_Delete(m_pCookingParam);
}
diff --git a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp
index a627e723b..6301ab80e 100644
--- a/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp
+++ b/Jusin154_Team3D/Engine/Private/RenderTarget_Manager.cpp
@@ -115,7 +115,7 @@ HRESULT CRenderTarget_Manager::Begin_MRT_NonClear(const _wstring& strMultiRender
return S_OK;
}
-HRESULT CRenderTarget_Manager::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV)
+HRESULT CRenderTarget_Manager::Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV , _bool isClear)
{
m_pContext->OMGetRenderTargets(1, &m_pBackBufferRTV, &m_pOriginalDSV);
@@ -135,15 +135,23 @@ HRESULT CRenderTarget_Manager::Begin_MRT_Include_BackBuffer(const _wstring& strM
pRenderTargetViews[iNumRenderTargets++] = m_pBackBufferRTV;
+
+
for (auto& pRenderTarget : *pMRTList)
{
- pRenderTarget->Clear();
+ if (isClear == true) {
+ pRenderTarget->Clear();
+ }
+
pRenderTargetViews[iNumRenderTargets++] = pRenderTarget->Get_RTV();
}
+
+
if (0 == iNumRenderTargets) {
return E_FAIL;
}
+
m_pContext->OMSetRenderTargets(iNumRenderTargets, pRenderTargetViews, (nullptr == pDSV) ? m_pOriginalDSV : pDSV);
return S_OK;
diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp
index 53aeb003c..0fafd8464 100644
--- a/Jusin154_Team3D/Engine/Private/Renderer.cpp
+++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp
@@ -52,6 +52,12 @@ void CRenderer::Render()
GUI::End();
#endif
+ m_eType = RENDER::END;
+}
+
+RENDER CRenderer::Get_CurrentRenderPass()
+{
+ return m_eType;
}
void CRenderer::Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix)
@@ -153,6 +159,8 @@ void CRenderer::Bind_RawValue()
void CRenderer::Render_Occlusion()
{
COMPUTE_TIMEDELTA("Timer_Render_Occlusion");
+ EVENTSCOPE_("Render_Occlusion");
+ m_eType = RENDER::OCCLUSION;
if (FAILED(m_pGameInstance->Begin_MRT_NonClear(TEXT("MRT_Combined")))) {
return;
}
@@ -184,6 +192,7 @@ void CRenderer::Render_Priority()
{
COMPUTE_TIMEDELTA("Timer_Render_Priority");
EVENTSCOPE_("Render_Priority");
+ m_eType = RENDER::PRIORITY;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::PRIORITY)])
{
if (nullptr != pRenderObject) {
@@ -224,6 +233,7 @@ void CRenderer::Render_Shadow()
return;
}
+ m_eType = RENDER::SHADOW_NEAR;
D3D11_VIEWPORT ViewPortDesc;
ZeroMemory(&ViewPortDesc, sizeof(D3D11_VIEWPORT));
{
@@ -257,6 +267,7 @@ void CRenderer::Render_Shadow()
return;
}
+ m_eType = RENDER::SHADOW_MIDDLE;
D3D11_VIEWPORT ViewPortDesc;
ZeroMemory(&ViewPortDesc, sizeof(D3D11_VIEWPORT));
{
@@ -294,6 +305,7 @@ void CRenderer::Render_NonBlend()
{
COMPUTE_TIMEDELTA("Timer_Render_NonBlend");
EVENTSCOPE_("Render_NonBlend");
+ m_eType = RENDER::NONBLEND;
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_GameObjects")))) {
return;
}
@@ -599,6 +611,7 @@ void CRenderer::Render_NonLight()
{
COMPUTE_TIMEDELTA("Timer_Render_NonLight");
EVENTSCOPE_("Render_NonLight");
+ m_eType = RENDER::NONLIGHT;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::NONLIGHT)])
{
if (nullptr != pRenderObject)
@@ -615,6 +628,7 @@ void CRenderer::Render_Blur()
{
COMPUTE_TIMEDELTA("Timer_Render_Blur");
EVENTSCOPE_("Render_Blur");
+ m_eType = RENDER::BLUR;
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Blur")))) {
return;
}
@@ -791,6 +805,7 @@ void CRenderer::Render_Blend()
{
COMPUTE_TIMEDELTA("Timer_Render_Blend");
EVENTSCOPE_("Render_Blend");
+ m_eType = RENDER::BLEND;
m_RenderObjects[ENUM_CLASS(RENDER::BLEND)].sort([](CGameObject* pSour, CGameObject* pDest)->_bool {
return pSour->Get_Depth() > pDest->Get_Depth();
});
@@ -819,7 +834,7 @@ void CRenderer::Render_Blur_Mesh()
return pSour->Get_Depth() > pDest->Get_Depth();
});
- if (FAILED(m_pGameInstance->Begin_MRT_Include_BackBuffer(L"MRT_Blur_Mesh")))
+ if (FAILED(m_pGameInstance->Begin_MRT_Include_BackBuffer(L"MRT_Blur_Mesh", nullptr, false)))
return;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BULR_MESH)])
@@ -930,6 +945,7 @@ void CRenderer::Render_PostProcessing()
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Bloom")))) {
return;
}
+ m_eType = RENDER::BLOOM;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::BLOOM)])
{
@@ -993,6 +1009,7 @@ void CRenderer::Render_Distortion()
{
COMPUTE_TIMEDELTA("Timer_Render_Distortion");
EVENTSCOPE_("Render_Distortion");
+ m_eType = RENDER::DISTORTION;
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Distortion")))) {
return;
@@ -1055,6 +1072,7 @@ void CRenderer::Render_UI()
{
COMPUTE_TIMEDELTA("Timer_Render_UI");
EVENTSCOPE_("Render_UI");
+ m_eType = RENDER::UI;
m_RenderObjects[ENUM_CLASS(RENDER::UI)].sort([](CGameObject* pDest, CGameObject* pSrc)->_bool {
_float3 vDstPos = {};
_float3 vSrcPos = {};
@@ -1084,6 +1102,7 @@ void CRenderer::Render_UI_Overley()
{
COMPUTE_TIMEDELTA("Timer_Render_UI_Overley");
EVENTSCOPE_("Render_UI_Overley");
+ m_eType = RENDER::UI_OVERLAY;
for (auto& pRenderObject : m_RenderObjects[ENUM_CLASS(RENDER::UI_OVERLAY)])
{
if (nullptr != pRenderObject) {
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
index 05806ba32..933eb0ea2 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Dynamic.cpp
@@ -145,15 +145,15 @@ HRESULT CRigidBody_Dynamic::ConvertToCCT(CCharacter_Controller& CCTOriginal)
m_pRigidBody->setAngularVelocity(PSX::PxZERO()); // DO 객체 이동 제거
m_pRigidBody->setLinearVelocity(PSX::PxZERO());
- Detach_Actor();
+ Detach_Actor(m_pGameInstance->Get_CurrentLevelID());
CCTOriginal.SetActive(true);
return E_FAIL;
}
-void CRigidBody_Dynamic::Detach_Actor()
+void CRigidBody_Dynamic::Detach_Actor(_uint iLevel)
{
- m_pGameInstance->Detach_Actor(*m_pRigidBody); // 현재 액터 비활성화
+ m_pGameInstance->Detach_Actor(*m_pRigidBody, iLevel); // 현재 액터 비활성화
m_bActive = false;
}
@@ -286,7 +286,7 @@ HRESULT CRigidBody_Dynamic::Initialize(void* pArg)
m_tagData.pOwner = m_pOwner;
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
m_tagData.pBody = this;
- m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this);
+ m_pRigidBody = m_pGameInstance->Add_DynamicActor(*this, m_pGameInstance->Get_NextLevelID());
m_pRigidBody->userData = &m_tagData;
m_pRigidBody->setCMassLocalPose(m_PxMassCenter);
m_pRigidBody->setRigidDynamicLockFlags(m_eLockFlag);
diff --git a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
index 854f7aa98..22ded3164 100644
--- a/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
+++ b/Jusin154_Team3D/Engine/Private/RigidBody_Static.cpp
@@ -37,7 +37,7 @@ HRESULT CRigidBody_Static::Initialize(void* pArg)
m_tagData.pOwner = m_pOwner;
XMStoreFloat4x4(&m_tagData.BeforeMatrix, m_pTransform->Get_XMWorldMatrix());
m_tagData.pBody = this;
- m_pRigidBody = m_pGameInstance->Add_StaticActor(*this);
+ m_pRigidBody = m_pGameInstance->Add_StaticActor(*this, m_pGameInstance->Get_NextLevelID());
m_pRigidBody->userData = &m_tagData;
m_pRigidBody->setName(CMyTools::ToString(m_wstrMeshName).c_str());
diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp
index 1e70caffd..bd080710c 100644
--- a/Jusin154_Team3D/Engine/Private/Transform.cpp
+++ b/Jusin154_Team3D/Engine/Private/Transform.cpp
@@ -410,6 +410,7 @@ void CTransform::LookAt(_fvector vAt)
void CTransform::LookAt_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed)
{
+ _float3 vScale = Get_Scale();
_vector vPos = Get_State(STATE::POSITION);
_vector vDir = vAt - vPos;
@@ -424,13 +425,14 @@ void CTransform::LookAt_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed)
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vNewLook));
_vector vUp = XMVector3Normalize(XMVector3Cross(vNewLook, vRight));
- Set_State(STATE::LOOK, vNewLook);
- Set_State(STATE::RIGHT, vRight);
- Set_State(STATE::UP, vUp);
+ Set_State(STATE::RIGHT, XMVector3Normalize(vRight) * vScale.x);
+ Set_State(STATE::UP, XMVector3Normalize(vUp) * vScale.y);
+ Set_State(STATE::LOOK, XMVector3Normalize(vNewLook) * vScale.z);
}
void CTransform::LookAt_Horizontal_Lerp(_fvector vAt, _float fTimeDelta, _float fSpeed)
{
+ _float3 vScale = Get_Scale();
_vector vPos = Get_State(STATE::POSITION);
_float3 vMyPos, vTarget;
@@ -453,9 +455,9 @@ void CTransform::LookAt_Horizontal_Lerp(_fvector vAt, _float fTimeDelta, _float
_vector vRight = XMVector3Normalize(XMVector3Cross(XMVectorSet(0.f, 1.f, 0.f, 0.f), vNewLook));
_vector vUp = XMVector3Normalize(XMVector3Cross(vNewLook, vRight));
- Set_State(STATE::LOOK, vNewLook);
- Set_State(STATE::RIGHT, vRight);
- Set_State(STATE::UP, vUp);
+ Set_State(STATE::RIGHT, XMVector3Normalize(vRight) * vScale.x);
+ Set_State(STATE::UP, XMVector3Normalize(vUp) * vScale.y);
+ Set_State(STATE::LOOK, XMVector3Normalize(vNewLook) * vScale.z);
}
void CTransform::LookAt_Horizontal(_fvector vAt)
diff --git a/Jusin154_Team3D/Engine/Private/UIObject.cpp b/Jusin154_Team3D/Engine/Private/UIObject.cpp
index cf9262857..f7a2f40b1 100644
--- a/Jusin154_Team3D/Engine/Private/UIObject.cpp
+++ b/Jusin154_Team3D/Engine/Private/UIObject.cpp
@@ -377,7 +377,7 @@ _bool CUIObject::Start_Lerp(_float fTimeDelta)
return false;
}
-_bool CUIObject::Start_Bezier(_float fTimeDelta)
+_bool CUIObject::Start_Lerp_Speed(_float fTimeDelta, _float2 Mouse_Point)
{
return _bool();
}
@@ -538,6 +538,11 @@ _float2 CUIObject::Get_Font()
return _float2(m_fFontX, m_fFontY);
}
+_float2 CUIObject::Get_PerPosition()
+{
+ return m_fPerPosition;
+}
+
void CUIObject::Free()
{
__super::Free();
diff --git a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
index 9edac6596..960749a85 100644
--- a/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
+++ b/Jusin154_Team3D/Engine/Private/VIBuffer_Terrain.cpp
@@ -424,7 +424,7 @@ void CVIBuffer_Terrain::ConvertToHeightField(const _tchar* pStaticKey)
assert(false);
}
else {
- m_pGameInstance->RegistHeight(pStaticKey, Desc);
+ m_pGameInstance->RegistHeight(pStaticKey, Desc, m_pGameInstance->Get_NextLevelID());
}
}
diff --git a/Jusin154_Team3D/Engine/Public/ElementObject.h b/Jusin154_Team3D/Engine/Public/ElementObject.h
index 90b5c68b5..363435267 100644
--- a/Jusin154_Team3D/Engine/Public/ElementObject.h
+++ b/Jusin154_Team3D/Engine/Public/ElementObject.h
@@ -31,6 +31,8 @@ class ENGINE_DLL CElementObject abstract : public CUIObject
virtual _float Get_Nine_Slice_Bottom() override;
virtual _bool Start_Lerp(_float fTimeDelta) override;
+ virtual _bool Start_Lerp_Speed(_float fTimeDelta, _float2 MousePoint) override;
+ virtual _bool Set_Trgger();
virtual void Reset_Pos(_float fTimeDelta)override;
virtual void Start_Size_Lerp(_float fTimeDelta) override;
virtual void Reset_Size_Lerp(_float fTimeDelta) override;
@@ -43,6 +45,9 @@ class ENGINE_DLL CElementObject abstract : public CUIObject
_float m_fBezierTime = 0;
+ vector<_vector> m_vector;
+
+
public:
virtual void Free() override;
};
diff --git a/Jusin154_Team3D/Engine/Public/GameInstance.h b/Jusin154_Team3D/Engine/Public/GameInstance.h
index 45785c6e3..15f7b7479 100644
--- a/Jusin154_Team3D/Engine/Public/GameInstance.h
+++ b/Jusin154_Team3D/Engine/Public/GameInstance.h
@@ -103,6 +103,7 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma region RENDERER
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
+ RENDER Get_CurrentRenderPass();
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
HRESULT Bind_PrevMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
#pragma endregion
@@ -170,7 +171,7 @@ class ENGINE_DLL CGameInstance final : public CBase
HRESULT Add_MRT(const _wstring& strMultiRenderTargetKey, const _wstring& strRenderTargetKey);
HRESULT Begin_MRT(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr);
HRESULT Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr);
- HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr);
+ HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV = nullptr , _bool isClear = true);
HRESULT Begin_MRT_NO_DepthStencil(const _wstring& strMRTTag);
HRESULT End_MRT();
HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName);
@@ -205,11 +206,11 @@ class ENGINE_DLL CGameInstance final : public CBase
#pragma endregion
#pragma region PhysX_Manager
PSX::PxMaterial* Create_Material(_float3* vMatInfo);
- void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
- void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc);
- PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody);
- PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody);
- PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
+ void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel);
+ void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel);
+ PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel);
+ PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel);
+ PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel);
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
_bool SphereCast(_float fRadius, _fvector vStartPos, _gvector vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
@@ -220,9 +221,9 @@ class ENGINE_DLL CGameInstance final : public CBase
PSX::PxController* Add_BoxController(PSX::PxBoxControllerDesc& Desc);
PSX::PxController* Get_Controller(_uint iControllerIndex);
void ReleaseController(_uint iControllerIndex);
- void Attach_Actor(PSX::PxActor& Actor);
- void Detach_Actor(PSX::PxActor& pActor);
- void Release_Actor(PSX::PxActor& Actor);
+ void Attach_Actor(PSX::PxActor& Actor, _uint iLevel);
+ void Detach_Actor(PSX::PxActor& pActor, _uint iLevel);
+ void Release_Actor(PSX::PxActor& Actor, _uint iLevel);
HRESULT ConvertToTriMeshes(vector& Meshes, vector& pxTriMeshes, _fmatrix WorldMatrix = XMMatrixIdentity());
#ifdef EDITOR_PROJECT
HRESULT SaveTriMeshes(const _char* pPath, vector& TriMeshes);
diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h
index c8a08f89c..fd86ef248 100644
--- a/Jusin154_Team3D/Engine/Public/Model.h
+++ b/Jusin154_Team3D/Engine/Public/Model.h
@@ -41,6 +41,7 @@ class ENGINE_DLL CModel final : public CComponent
_float4x4 Get_PreTransformMatrix() const { return m_PreTransformMatrix; };
virtual HRESULT Render(_uint iMeshIndex);
virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation);
+ MODEL Get_Type() { return m_eType; }
#pragma endregion
#pragma region Animation
_bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌
@@ -105,7 +106,7 @@ class ENGINE_DLL CModel final : public CComponent
void Initialize_BoneMasks();
public:
- HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix);
+ HRESULT Ready_PhysXMeshes(_fmatrix& PreTransformMatrix, _uint iLevel);
#ifdef EDITOR_PROJECT
HRESULT Assimp_Model_Load(const _char* pModelFilePath, MODEL eType, _fmatrix& PreTransformMatrix, _uint iRootBoneIndex);
HRESULT Ready_Meshes(MODEL eType, const aiScene* pAIScene, _fmatrix& PreTransformMatrix);
@@ -180,6 +181,7 @@ class ENGINE_DLL CModel final : public CComponent
_float m_fRadius = { 0.f }; // 컬링용 Radius
_int m_iRootBoneIndex = { -1 }; // 루트본의 인덱스
+ _int m_iIndexAnimPlayableMesh = { -1 };
_vector m_vector[3];
vector<_uint> m_iBoneMask;
diff --git a/Jusin154_Team3D/Engine/Public/PanelObject.h b/Jusin154_Team3D/Engine/Public/PanelObject.h
index c661f9c47..9e790d547 100644
--- a/Jusin154_Team3D/Engine/Public/PanelObject.h
+++ b/Jusin154_Team3D/Engine/Public/PanelObject.h
@@ -33,10 +33,12 @@ class ENGINE_DLL CPanelObject abstract : public CUIObject
virtual void Add_Function(wstring Name, function Evnet) override;
virtual void Function_Callback(wstring Name, void* pArg = nullptr) override;
+
protected:
virtual void Add_Element(wstring Name, class CGameObject* pElement);
virtual _bool Chack_Visible() override;
+ virtual _bool Chack_Element(_float2 Position, _float2 Target, _float Scale, _float TargetScale);
protected:
vector m_Elements; // 패널이 엘리먼츠를 관리하기 위해 만듬
vector m_ElementName; // 엘리멘트들의 이름을 전해주기 위해서
diff --git a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
index 20694994a..5d56c7dbc 100644
--- a/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/PhysX_Manager.h
@@ -21,12 +21,12 @@ class CPhysX_Manager final : public CBase
// HRESULT Update_RegionOfInterest(); ( 충돌 컬링, 필터링도 검색해야함 )
// Aggregate ( 충돌 그룹, 이 그룹끼리는 서로 충돌검사를 하지 않음, 지형, 레그돌 등 )
- PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody);
- PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody);
- PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame);
+ PSX::PxRigidDynamic* Add_DynamicActor(CRigidBody_Dynamic& RigidBody, _uint iLevel);
+ PSX::PxRigidStatic* Add_StaticActor(CRigidBody_Static& RigidBody, _uint iLevel);
+ PSX::PxRevoluteJoint* Create_PxRevoluteJoint(PSX::PxRigidActor* pActorFrame, PSX::PxTransform& pxLocalWallFrame, PSX::PxRigidActor* pActorObject, PSX::PxTransform& pxLocalActorFrame, _uint iLevel);
- void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh);
- void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc);
+ void RegistTriMesh(const _char* pName, PSX::PxTriangleMesh* pPxTriMesh, _uint iLevel);
+ void RegistHeight(const _tchar* pName, PSX::PxHeightFieldDesc& Desc, _uint iLevel);
PSX::PxMaterial* Create_Material(const _float3* vMatInfo);
_bool SphereCast(_float fRadius, _float3 vStartPos, _float3 vDir, _float fDistance, PSX::PxHitFlags flagHitsData, PSX::PxQueryFlags flagQuery, PSX::PxSweepBuffer& hitBuffer);
@@ -44,14 +44,14 @@ class CPhysX_Manager final : public CBase
#endif // EDITOR_PROJECT
HRESULT LoadTriMeshes(const _char* pPath, vector& TriMeshes);
//HRESULT LoadTriMeshes_Binary(const _char* pPath, vector& TriMeshes);
- PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName);
- PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName);
+ PSX::PxTriangleMesh* Find_TriangleMesh(const _tchar* pMeshName, _uint iLevel);
+ PSX::PxHeightField* Find_HeightField(const _tchar* pFieldName, _uint iLevel);
void Update(_float fTimeDelta);
- void ClearScene();
- void Attach_Actor(PSX::PxActor& Actor);
- unordered_set::iterator Detach_Actor(PSX::PxActor& Actor);
- void Release_Actor(PSX::PxActor& Actor);
+ void ClearScene(_uint iLevel);
+ void Attach_Actor(PSX::PxActor& Actor, _uint iLevel);
+ unordered_set::iterator Detach_Actor(PSX::PxActor& Actor, _uint iLevel);
+ void Release_Actor(PSX::PxActor& Actor, _uint iLevel);
#pragma endregion
#pragma region CHARACTER_CONTROLLER
/* dev-treadmill.tistory.com/158 */
@@ -89,23 +89,24 @@ class CPhysX_Manager final : public CBase
PSX::PxPvdTransport* m_pTransport = { nullptr };
+ _uint m_iMaxLevel = {};
- unordered_set m_pActiveBodys = { };
- unordered_set m_pRestBodies = { }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
+ unordered_set* m_pActiveBodys = { nullptr };
+ unordered_set* m_pRestBodies = { nullptr }; // 피직스의 액터로 구별되기 때문에 피직스액터 포인터를 키로 사용함
- map<_wstring, PSX::PxTriangleMesh*> m_TriangleMeshes = {};
- map<_wstring, PSX::PxTriangleMeshGeometry*> m_TriangleMeshGeometry = {};
+ map<_wstring, PSX::PxTriangleMesh*>* m_TriangleMeshes = { nullptr };
+ map<_wstring, PSX::PxTriangleMeshGeometry*>*m_TriangleMeshGeometry = { nullptr };
- map<_wstring, PSX::PxHeightField*> m_HeightFields = {};
- map<_wstring, PSX::PxHeightFieldGeometry*> m_HeightFieldGeometry = {};
+ map<_wstring, PSX::PxHeightField*>* m_HeightFields = { nullptr };
+ map<_wstring, PSX::PxHeightFieldGeometry*>* m_HeightFieldGeometry = { nullptr };
PhsXUserData PlaneData = {};
vector m_pMaterials = { };
- _uint m_iNumLevel = {};
+ _uint m_iNumLevel = { UINT_MAX };
private:
- HRESULT Initialize();
+ HRESULT Initialize(_uint iLevel);
#ifdef _DEBUG
HRESULT Connect_DebugServer();
#endif // _DEBUG
@@ -115,7 +116,7 @@ class CPhysX_Manager final : public CBase
//void Update_Dynamic_AllActors();
public:
- static CPhysX_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
+ static CPhysX_Manager* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext, _uint iLevel);
virtual void Free() override;
};
diff --git a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h
index 2da01ffb3..8b1170d45 100644
--- a/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h
+++ b/Jusin154_Team3D/Engine/Public/RenderTarget_Manager.h
@@ -14,7 +14,7 @@ class CRenderTarget_Manager final : public CBase
HRESULT Add_MRT(const _wstring& strMultiRenderTargetKey, const _wstring& strRenderTargetKey);
HRESULT Begin_MRT(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV);
HRESULT Begin_MRT_NonClear(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV);
- HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV);
+ HRESULT Begin_MRT_Include_BackBuffer(const _wstring& strMRTTag, ID3D11DepthStencilView* pDSV , _bool isClear);
HRESULT Begin_MRT_NO_DepthStencil(const _wstring& strMRTTag);
HRESULT End_MRT();
HRESULT Bind_RenderTarget(const _wstring& strTargetTag, class CShader* pShader, const _char* pConstantName);
diff --git a/Jusin154_Team3D/Engine/Public/Renderer.h b/Jusin154_Team3D/Engine/Public/Renderer.h
index 8ab7b3556..d26ce88e0 100644
--- a/Jusin154_Team3D/Engine/Public/Renderer.h
+++ b/Jusin154_Team3D/Engine/Public/Renderer.h
@@ -13,6 +13,7 @@ class CRenderer final : public CBase
public:
void Render();
+ RENDER Get_CurrentRenderPass();
HRESULT Add_RenderGroup(RENDER eRenderGroup, class CGameObject* pRenderObject);
void Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& ProjMatrix);
HRESULT Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType);
@@ -27,6 +28,7 @@ class CRenderer final : public CBase
ID3D11DeviceContext* m_pContext = { nullptr };
class CGameInstance* m_pGameInstance = { nullptr };
list m_RenderObjects[ENUM_CLASS(RENDER::END)];
+ RENDER m_eType = RENDER::END;
#ifdef _DEBUG
CRenderEventDebugger m_AnnotationHelper = {};
@@ -69,8 +71,6 @@ class CRenderer final : public CBase
_float4x4 m_PreShadowView = {};
_float4x4 m_PreShadowProj = {};
-
-
#pragma region TunningParameters
/* TunningParam */
diff --git a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
index 6e0e50f19..29288d8e4 100644
--- a/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
+++ b/Jusin154_Team3D/Engine/Public/RigidBody_Dynamic.h
@@ -45,7 +45,7 @@ class ENGINE_DLL CRigidBody_Dynamic : public CRigidBody
void Set_Kinematic(_bool bKinematic);
HRESULT ConvertToCCT(class CCharacter_Controller& CCTOriginal);
- void Detach_Actor();
+ void Detach_Actor(_uint iLevel);
_bool IsActive() const { return m_bActive; }
void SetActive(_bool bCondition) { m_bActive = bCondition; }
diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h
index b0a75c87a..0d1f8cc92 100644
--- a/Jusin154_Team3D/Engine/Public/State.h
+++ b/Jusin154_Team3D/Engine/Public/State.h
@@ -44,8 +44,9 @@ enum ESTATE
FIREBREATH_A,FIREBREATH_COOLDOWN_A,FIREBREATH_WINDUP_A, FIRESWEEP_A, FIRESWEEP_COOLDOWN_A, FIRESWEEP_WINDUP_A, FIREBREATH_G, FIRESWEEP_G,
PULSE,
GROUND_SWIPE_L,GROUND_SWIPE_R,
- TUCKED,FLY_TO_HOVER,
+ TUCKED,FLY_TO_HOVER,FLY,
FIREBURST_REEL,
+ SPELL_LEARNING_FAIL, SPELL_LEARNING_LOOP, SPELL_LEARNING_START, SPELL_LEARNING_SUCCESS, SPELL_LEARNING_WANDWAVE,
////////////////////////// 빗자루
BROOM_MOUNT_B, BROOM_HOVER_IDLE_B, BROOM_HOVER_STOP_B,BROOM_HOVER_DOWN_B,BROOM_HOVER_UP_B,BROOM_HOVER_LEFT_B,BROOM_HOVER_RIGHT_B,BROOM_FLY_DOWN_B, BROOM_FLY_LEFT_B, BROOM_FLY_RIGHT_B, BROOM_FLY_UP_B,BROOM_FLY_B,BROOM_ADD,
/// ////////////////////////////
diff --git a/Jusin154_Team3D/Engine/Public/UIObject.h b/Jusin154_Team3D/Engine/Public/UIObject.h
index b2104dc38..019f8e113 100644
--- a/Jusin154_Team3D/Engine/Public/UIObject.h
+++ b/Jusin154_Team3D/Engine/Public/UIObject.h
@@ -76,10 +76,14 @@ typedef struct tagCurrentQeustSerectInfo
typedef struct tagSpellLearnInfo
{
- _wstring pSpellName{};
- _wstring pImageName{};
- _float fSpellSize{};
- _float2 fStartPosition{};
+ _wstring pSpellName{};
+ _wstring pImageName{};
+ _int iSpellID{};
+ _int iSpellType{};
+ _float fSpellSize{};
+ _float2 fStartPosition{};
+ _float2 fEndPosition{};
+ vector<_vector> Booster;
vector<_vector> Lines;
}SPELLLEARNINFO;
@@ -152,7 +156,7 @@ typedef struct tagSpellLearnInfo
virtual void Lerp_PosX(_float PosX);
virtual void Lerp_PosY(_float PosY);
virtual _bool Start_Lerp(_float fTimeDelta);
- virtual _bool Start_Bezier(_float fTimeDelta);
+ virtual _bool Start_Lerp_Speed(_float fTimeDelta, _float2 Mouse_Point);
virtual void Reset_Pos(_float fTimeDelta);
virtual void Start_Size_Lerp(_float fTimeDelta);
virtual void Reset_Size_Lerp(_float fTimeDelta);
@@ -190,6 +194,7 @@ typedef struct tagSpellLearnInfo
virtual void Set_FontX(_float fFontX);
virtual void Set_FontY(_float fFontY);
virtual _float2 Get_Font();
+ virtual _float2 Get_PerPosition();
protected:
_vector m_fOrigin_Position_vector{};
_float2 m_fOrigin_Position{};
@@ -246,6 +251,8 @@ typedef struct tagSpellLearnInfo
_float m_fFontX{};
_float m_fFontY{};
_float m_fFontOffSet{};
+
+ _float2 m_fPerPosition{};
protected:
virtual HRESULT Initialize_Prototype();
virtual HRESULT Initialize(void* pArg);