[Add] Spell 애니메이션 다 추가

This commit is contained in:
qordlsgur
2025-11-30 23:52:40 +09:00
parent 7e9da3c092
commit c1b46f0215
7875 changed files with 922 additions and 391 deletions
@@ -340,15 +340,27 @@ PS_OUT PS_QuestType(PS_IN In)
return Out;
}
PS_OUT PS_UVMult(PS_IN In)
PS_OUT PS_Spell_Anim(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
float4 Color = float4(1.f,1.f,1.f,1.f);
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
color.a *= Alpha;
Out.vColor = color;
Color = tex1;
float2 texpos = g_fImageSipos1.xy / g_fCurrent_Size;
float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal = (In.vTexcoord - texpos) / texsize;
bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
if (inside)
Color = lerp(Color, tex2, tex2.a);
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
@@ -1229,14 +1241,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_QuestType();
}
pass UVMult
pass Spell_Anim
{
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_UVMult();
PixelShader = compile ps_5_0 PS_Spell_Anim();
}
pass NineSlice
@@ -225,6 +225,7 @@ call Update_Resources.bat
<ClInclude Include="..\Public\Player.h" />
<ClInclude Include="..\Public\PlayerInfo.h" />
<ClInclude Include="..\Public\Slot_Number.h" />
<ClInclude Include="..\public\Skill_Data.h" />
<ClInclude Include="..\Public\Spell_Overlay.h" />
<ClInclude Include="..\Public\Spell_Slot.h" />
<ClInclude Include="..\Public\Spell_UI.h" />
@@ -314,6 +315,7 @@ call Update_Resources.bat
<ClCompile Include="..\Private\Player.cpp" />
<ClCompile Include="..\Private\PlayerInfo.cpp" />
<ClCompile Include="..\Private\Slot_Number.cpp" />
<ClCompile Include="..\private\Skill_Data.cpp" />
<ClCompile Include="..\Private\Spell_Overlay.cpp" />
<ClCompile Include="..\Private\Spell_Slot.cpp" />
<ClCompile Include="..\Private\Spell_UI.cpp" />
@@ -256,6 +256,9 @@
<ClInclude Include="..\Public\State_Broom_Ride.h">
<Filter>04.Mechanic\State\Broom</Filter>
</ClInclude>
<ClInclude Include="..\public\Skill_Data.h">
<Filter>04.Mechanic\Skill\Skill_Data</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<Image Include="Client.ico">
@@ -323,9 +326,6 @@
<Filter Include="04.Mechanic\State">
<UniqueIdentifier>{1bfec6dc-f008-4d18-87d6-be38824b1272}</UniqueIdentifier>
</Filter>
<Filter Include="04.Mechanic\Skill">
<UniqueIdentifier>{c5b61cb3-bc5f-4429-8715-b309dcf054b2}</UniqueIdentifier>
</Filter>
<Filter Include="01.Levels\10.Field">
<UniqueIdentifier>{2b209526-b728-4fba-a184-b9224d72903a}</UniqueIdentifier>
</Filter>
@@ -560,6 +560,12 @@
<Filter Include="02.GameObjects\Environment\00.MapContainer\StreetContainer">
<UniqueIdentifier>{e12a4228-0754-4217-b65d-7f962409f85c}</UniqueIdentifier>
</Filter>
<Filter Include="04.Mechanic\Skill">
<UniqueIdentifier>{c5b61cb3-bc5f-4429-8715-b309dcf054b2}</UniqueIdentifier>
</Filter>
<Filter Include="04.Mechanic\Skill\Skill_Data">
<UniqueIdentifier>{2bc5b43e-0e24-49d4-95b0-549ad4428201}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="Client.cpp">
@@ -808,6 +814,9 @@
<ClCompile Include="..\private\StreetContainer.cpp">
<Filter>02.GameObjects\Environment\00.MapContainer\StreetContainer</Filter>
</ClCompile>
<ClCompile Include="..\private\Skill_Data.cpp">
<Filter>04.Mechanic\Skill\Skill_Data</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Client.rc">
@@ -121,7 +121,7 @@ HRESULT CEffectPool::Ready_Effect()
))) return E_FAIL;
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARD, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
if (FAILED(Create_Effect(SKILL_TYPE::BOMBARDA, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel)-> CEffect_Container* {
CBombard* pEffect = nullptr;
@@ -132,7 +132,7 @@ HRESULT CLevel_GamePlay::Ready_Background()
HRESULT CLevel_GamePlay::Ready_Layer_UI(const _wstring& strLayerTag)
{
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(ENUM_CLASS(LEVEL::STATIC), NEXT_LEVEL, LAYER_UI))) {
if (FAILED(m_pGameInstance->Add_GameObject_ToLayer<CGamePlay_Canvas>(g_iStaticLevel, g_iStaticLevel, LAYER_UI))) {
return E_FAIL;
}
@@ -117,7 +117,7 @@ HRESULT CMagic_Icon::Render()
_vector CMagic_Icon::Get_WorldPostion()
{
return m_pOwner->Get_WorldPostion();
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CMagic_Icon::Bind_ShaderResources()
@@ -820,7 +820,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck()
m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second);
m_pModelCom->Anim_Event(0.f, m_Animation[STATEANIM::ACCIO].first, [this]() {
m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARD, this);
m_pEffectPool->Use_Skill(SKILL_TYPE::BOMBARDA, this);
m_eSpell = STATEANIM::END;
return E_FAIL;
@@ -0,0 +1 @@
#include "pch.h"
+1 -1
View File
@@ -184,7 +184,7 @@ HRESULT CSpell_UI::Render()
_vector CSpell_UI::Get_WorldPostion()
{
return m_pOwner->Get_WorldPostion();
return m_pTransformCom->Get_State(STATE::POSITION);
}
HRESULT CSpell_UI::Bind_ShaderResources()
+8 -1
View File
@@ -18,7 +18,14 @@ namespace Client
enum class EFFECT_TYPE { EFFECT, TRAIL, END };
enum class SKILL_TYPE { JAP, BOMBARD, DESCENDO, PROTEGO, END };
enum class SKILL_TYPE {
ARESTO_MOMENTUM, GLACIUS, LEVIOSO, TRANSFORM, ASSIO,
DEPULSO, DESCENDO, FLIPENDO, CONFRINGO, DIFFINDO, EXPELLIARMUS,
BOMBARDA, INCENDIO, DISILLUSIONMENT, LUMOS, REPARO, WINGARDIUM_LEVIOSA,
CONJURING_SPELL, ALTERING_SPELL, EVANESCO, AVADA_KEDAVRA, CRUCIO, IMPERIO,
BEAST_PETTING_BRUSH, BEAST_FEED, NAB_SACK, JAP, REVELIO, PROTEGO, STUPEFY,
ANCIENT_MAGIC_THROW, ANCIENT_MAGIC, ALOHOMORA, PETRIFICUS_TOTALUS, END
};
enum class BLOOM_TYPE { NONE, BASIC, MULTIPLY, END };
}
@@ -19,11 +19,12 @@ namespace Client
typedef struct tagSpellInfo
{
_uint iSpell_ID{};
_wstring pSpell_Name{};
_wstring pSpell_Name;
_uint iSpell_Type{};
_uint iSpell_CoolTime{};
_uint iAnimNum{};
_wstring pSpellInfo;
_bool bSpell_Lock = false;
_bool bEquip_Spell = false;
}SPELLINFO;
};
@@ -0,0 +1,5 @@
#pragma once
class CSkill_Data
{
};
@@ -340,15 +340,27 @@ PS_OUT PS_QuestType(PS_IN In)
return Out;
}
PS_OUT PS_UVMult(PS_IN In)
PS_OUT PS_Spell_Anim(PS_IN In)
{
PS_OUT Out;
float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha;
float4 color = g_Texture.Sample(DefaultSampler, In.vTexcoord);
float4 Color = float4(1.f,1.f,1.f,1.f);
float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord);
color.a *= Alpha;
Out.vColor = color;
Color = tex1;
float2 texpos = g_fImageSipos1.xy / g_fCurrent_Size;
float2 texsize = g_fImageSipos1.zw / g_fCurrent_Size;
float2 texlocal = (In.vTexcoord - texpos) / texsize;
bool inside = all(texlocal >= 0.0f && texlocal <= 1.0f);
float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord);
if (inside)
Color = lerp(Color, tex2, tex2.a);
Color.a *= Alpha;
Out.vColor = Color;
return Out;
}
@@ -1229,14 +1241,14 @@ technique11 PosTexTechnique11
PixelShader = compile ps_5_0 PS_QuestType();
}
pass UVMult
pass Spell_Anim
{
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_UVMult();
PixelShader = compile ps_5_0 PS_Spell_Anim();
}
pass NineSlice
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Some files were not shown because too many files have changed in this diff Show More