diff --git a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl index 067d90c1d..cd43fbd4d 100644 --- a/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl +++ b/Jusin154_Team3D/Client/Bin/Resources/ShaderFiles/Shader_UIEditor.hlsl @@ -13,6 +13,7 @@ uint g_iSpellType; float g_fPI; float g_fFar; +float g_fBlinkTime; float g_fTime; float g_fTimeMult; float g_fFrame; @@ -28,12 +29,20 @@ float g_fHp; float2 g_fOrigin_Size; float2 g_fCurrent_Size; float2 g_fHpBG; +float2 g_Pos; +float2 g_fImageSize; float4 g_fNine_Slice; float4 g_fImageUV; float4 g_fImageUV1; +uint g_iArrayCount; +float2 g_fItemPosition1; +float2 g_fItemImageSizes1; +float2 g_fItemPosition2; +float2 g_fItemImageSizes2; float2 g_fPosition[4]; +float2 g_fImageSizes[4]; float4 g_fImagesUV[4]; Texture2D g_Texture; @@ -41,6 +50,7 @@ Texture2D g_Texture1; Texture2D g_Texture2; Texture2D g_Texture3; Texture2D g_Texture4; +Texture2D g_Texture5; Texture2D g_DiffuseTexture; Texture2D g_MaskingTexture; @@ -251,6 +261,7 @@ PS_OUT PS_Sptire_Sheet(PS_IN In) if (Color.r <= 0.4f) discard; + Color.a *= Alpha; Out.vColor = Color; @@ -416,8 +427,30 @@ PS_OUT PS_SpellAnim(PS_IN In) float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; - float4 color = float4(1.f, 1.f, 1.f, 1.f); - + float4 color = float4(0.f, 0.f, 0.f, 0.f); + + float2 center = float2(0.5f, 0.5f); + float2 uv = In.vTexcoord - center; + uv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); + Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); + Rotation += center; + + float2 startUV = g_fImageUV.xy; + float2 endUV = g_fImageUV.zw; + + float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + + float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); + float4 tex2 = g_Texture2.Sample(DefaultSampler, atlasUV); + + tex1.rgb *= 0.4f; + color = tex1; + tex2.rgb *= 0.3f; + + if (tex2.a >= 0.9f) + color = tex2; float3 BGColor = float3(1.f, 1.f, 1.f); switch (g_iSpellType) @@ -444,39 +477,42 @@ PS_OUT PS_SpellAnim(PS_IN In) BGColor = float3(0.f, 0.f, 0.f); break; } + float4 color1 = float4(1.f, 1.f, 1.f, 1.f); - float2 uv = In.vTexcoord; + float2 OverrayUV = In.vTexcoord; float CoolTime = 1.f - g_fDeltaV; float CoolTime2 = 1.f - g_fDeltaV + 0.05; + atlasUV = startUV + In.vTexcoord * (endUV - startUV); + float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV); + tex3.rgb *= BGColor; + float4 tex4 = g_Texture2.Sample(DefaultSampler, atlasUV); - float4 tex1 = g_Texture.Sample(ClampSampler, uv); - tex1.rgb *= BGColor; - float4 tex2 = g_Texture1.Sample(DefaultSampler, uv); + if (tex4.a >= 0.9f) + tex3 = tex4; - if (tex2.a >= 0.9f) - tex1 = tex2; - - color = tex1; + color1 = tex3; - float wave1 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f; - float wave2 = sin(uv.x * 10.f + g_fTime * 2.f) * 0.01f; + float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f; + float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f; float waveThreshold1 = CoolTime + wave1; float waveThreshold2 = CoolTime2 + wave2; if (g_fDeltaV <= 1.f) { - if (uv.y >= waveThreshold1 && uv.y <= waveThreshold2) + if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2) { - color.rgb = float3(1.f, 1.f, 1.f); + color1.rgb = float3(1.f, 1.f, 1.f); } } - if (uv.y <= CoolTime) + if (OverrayUV.y <= CoolTime) { - color.a = 0.f; + color1.a = 0.f; } + color = lerp(color, color1, color1.a); + color.a *= Alpha; Out.vColor = color; @@ -488,6 +524,7 @@ PS_OUT PS_HpBar(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 Color1 = float4(1.f, 1.f, 1.f, 1.f); float2 uv = In.vTexcoord; float2 CurrentPixelPosition = uv * g_fCurrent_Size; float OriginLeft = g_fNine_Slice.x; @@ -533,24 +570,46 @@ PS_OUT PS_HpBar(PS_IN In) } float4 tex1 = g_Texture.Sample(ClampSampler, Finaluv); + tex1.rgb = float3(255.f, 0.f, 0.f) / 255.f; + if (g_fHp <= 0.3f) + { + tex1.a *= (sin(g_fBlinkTime) * 0.25f + 0.75f) * 1.5f; + } + else + { + tex1.a = 0.f; + } Color = tex1; + + float2 BGPos = g_Pos; + float2 BGSize = g_fImageSize; + float2 BGPixel = Finaluv * g_fOrigin_Size; + float2 localUV = (BGPixel - BGPos) / BGSize; + bool inside = all(localUV >= 0.0f && localUV <= 1.0f); + + float4 tex2 = g_Texture1.Sample(ClampSampler, localUV); + + if (inside) + Color = lerp(Color, tex2, tex2.a); + float2 reversuv = In.vTexcoord; - reversuv.x = 1.0f - Finaluv; + reversuv.x = 1.0f - localUV.x; - float4 tex2 = g_Texture1.Sample(ClampSampler, Finaluv); + float4 tex3 = g_Texture2.Sample(ClampSampler, localUV); if (reversuv.x >= g_fHp) { - tex2.rgb = float3(0.f, 0.f, 0.f); + tex3.rgb = float3(0.f, 0.f, 0.f); } - float3 Green = float3(112.f, 241.f, 31.f) / 255.f; - Green *= 1.2f; - tex2.rgb *= Green; + float3 Green = (float3(112.f, 241.f, 31.f) / 255.f) * 1.2f; + float3 Red = (float3(255.f, 0.f, 0.f) / 255.f) * 1.2f; - if (all(Color.rgb >= float3(70.f / 255.f, 70.f / 255.f, 70.f / 255.f))) - Color = tex2; + tex3.rgb *= lerp(Green, Red, g_fTime); + + if (all(Color.rgb >= float3(55.f / 255.f, 0.f / 255.f, 55.f / 255.f))) + Color = lerp(Color, tex3, tex3.a); Color.a *= Alpha; Out.vColor = Color; @@ -595,18 +654,28 @@ PS_OUT PS_Magic_Icon(PS_IN In) float4 Color = float4(1.f, 1.f, 1.f, 1.f); - float4 tex1 = g_Texture.Sample(DefaultSampler, In.vTexcoord); + float2 center = float2(0.5f, 0.5f); + float2 BGuv = In.vTexcoord - center; + BGuv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = BGuv.x * cos(g_fAngle) - BGuv.y * sin(g_fAngle); + Rotation.y = BGuv.x * sin(g_fAngle) + BGuv.y * cos(g_fAngle); + Rotation += center; + + float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); + float4 tex2 = g_Texture1.Sample(ClampSampler, Rotation); + + Color = tex1; + Color = lerp(tex1, tex2, tex2.a); + float2 uv = In.vTexcoord; - float2 center = float2(0.5, 0.5); float scale = 1.2; uv = (uv - center) * scale + center; - float4 tex2 = g_Texture1.Sample(ClampSampler, uv); + float4 tex3 = g_Texture2.Sample(ClampSampler, uv); - Color = tex1; - - Color = tex1 * (1 - tex2.a) + tex2; + Color = Color * (1 - tex3.a) + tex3; Color.a *= Alpha; Out.vColor = Color; @@ -645,30 +714,30 @@ PS_OUT PS_Revelio(PS_IN In) float4 Color = float4(1.f, 1.f, 1.f, 1.f); float2 UV = In.vTexcoord; - float2 Position[4]; - float2 startUV[4]; - float2 endUV[4]; + //float2 Position[4]; + //float2 startUV[4]; + //float2 endUV[4]; - float2 Atlases[4]; + //float2 Atlases[4]; - for (int i = 0; i < 4; ++i) - { - Position[i] = g_fPosition[i]; - startUV[i] = g_fImagesUV[i].xy; - endUV[i] = g_fImagesUV[i].zw; + //for (int i = 0; i < 4; ++i) + //{ + // Position[i] = g_fPosition[i]; + // startUV[i] = g_fImagesUV[i].xy; + // endUV[i] = g_fImagesUV[i].zw; - Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]); - } + // Atlases[i] = startUV[i] + UV * (endUV[i] - startUV[i]); + //} - float4 tex1 = g_Texture.Sample(DefaultSampler, UV); - float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]); - float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]); - float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]); - float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]); + //float4 tex1 = g_Texture.Sample(DefaultSampler, UV); + //float4 tex2 = g_Texture1.Sample(DefaultSampler, Atlases[0]); + //float4 tex3 = g_Texture1.Sample(DefaultSampler, Atlases[1]); + //float4 tex4 = g_Texture2.Sample(DefaultSampler, Atlases[2]); + //float4 tex5 = g_Texture2.Sample(DefaultSampler, Atlases[3]); - //float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + ////float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); Color.a *= Alpha; Out.vColor = Color; @@ -676,6 +745,169 @@ PS_OUT PS_Revelio(PS_IN In) return Out; } +PS_OUT PS_Potion(PS_IN In) +{ + PS_OUT Out; + float Alpha = g_fAlpha * g_fOwnerAlpha * g_fCanvasAlpha; + float4 Color = float4(214.f / 255.f, 225 / 255.f, 36 / 255.f, 1.f); + + float2 center = float2(0.5f, 0.5f); + float2 uv = In.vTexcoord - center; + uv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); + Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); + Rotation += center; + + float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); + Color = tex1; + + float4 tex2 = g_Texture1.Sample(DefaultSampler, In.vTexcoord); + //Color += tex2; + float4 tex3 = g_Texture2.Sample(ClampSampler, Rotation); + Color = lerp(Color, tex3, tex3.a); + + float2 Potionuv = In.vTexcoord; + float scale = 1.2; + + Potionuv = (Potionuv - center) * scale + center; + float4 tex4 = g_Texture3.Sample(ClampSampler, Potionuv); + Color = lerp(Color, tex4, tex4.a); + + float2 tex5pos = g_Pos / g_fCurrent_Size; + float2 tex5size = g_fOrigin_Size / g_fCurrent_Size; + float2 tex5local = (In.vTexcoord - tex5pos) / tex5size; + bool inside = all(tex5local >= 0.0f && tex5local <= 1.0f); + float4 tex5 = g_Texture4.Sample(ClampSampler, tex5local); + if (inside) + Color = lerp(Color, tex5, tex5.a); + + Color.a *= Alpha; + Out.vColor = Color; + + return Out; +} + +PS_OUT PS_Magic_Item(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); + + float2 center = float2(0.5f, 0.5f); + float2 uv = In.vTexcoord - center; + uv *= sqrt(2.0f); + float2 Rotation = In.vTexcoord; + Rotation.x = uv.x * cos(g_fAngle) - uv.y * sin(g_fAngle); + Rotation.y = uv.x * sin(g_fAngle) + uv.y * cos(g_fAngle); + Rotation += center; + + float2 startUV = g_fImageUV.xy; + float2 endUV = g_fImageUV.zw; + + float2 atlasUV = startUV + In.vTexcoord * (endUV - startUV); + + float4 tex1 = g_Texture.Sample(ClampSampler, Rotation); + float4 tex2 = g_Texture3.Sample(ClampSampler, atlasUV); + + tex1.rgb *= 0.4f; + color = tex1; + tex2.rgb *= 0.3f; + + if (tex2.a >= 0.9f) + color = tex2; + float3 BGColor = float3(1.f, 1.f, 1.f); + + switch (g_iSpellType) + { + case 0: + BGColor = float3(50.f, 50.f, 50.f) / 255.f; + break; + case 1: + BGColor = float3(89.f, 32.f, 215.f) / 255.f; + break; + case 2: + BGColor = float3(190.f, 46., 34.f) / 255.f; + break; + case 3: + BGColor = float3(37.f, 129.f, 162.f) / 255.f; + break; + case 4: + BGColor = float3(134.f, 171.f, 78.f) / 255.f; + break; + } + + float4 color1 = float4(1.f, 1.f, 1.f, 1.f); + + float2 OverrayUV = In.vTexcoord; + float CoolTime = 0.f + g_fDeltaV; + float CoolTime2 = 0.f + g_fDeltaV + 0.05; + atlasUV = startUV + In.vTexcoord * (endUV - startUV); + float4 tex3 = g_Texture1.Sample(ClampSampler, OverrayUV); + tex3.rgb *= BGColor; + float4 tex4 = g_Texture3.Sample(DefaultSampler, atlasUV); + + if (g_fDeltaV <= 1.f) + { + if (tex4.a >= 0.9f) + tex3 = tex4; + + color1 = tex3; + + float wave1 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f; + float wave2 = sin(OverrayUV.x * 10.f + g_fTime * 2.f) * 0.01f; + + float waveThreshold1 = CoolTime + wave1; + float waveThreshold2 = CoolTime2 + wave2; + + if (g_fDeltaV <= 1.f) + { + if (OverrayUV.y >= waveThreshold1 && OverrayUV.y <= waveThreshold2) + { + color1.rgb = float3(1.f, 1.f, 1.f); + } + } + + if (OverrayUV.y <= CoolTime) + { + color1.a = 0.f; + } + + color = lerp(color, color1, color1.a); + } + else if (g_fDeltaV >= 1.f) + color = lerp(color, tex4, tex4.a); + + float4 tex5 = g_Texture2.Sample(ClampSampler, Rotation); + color = lerp(color, tex5, tex5.a); + + float2 texpos1 = g_fItemPosition1 / g_fCurrent_Size; + float2 texpos2 = g_fItemPosition2 / g_fCurrent_Size; + float2 texsize1 = g_fItemImageSizes1 / g_fCurrent_Size; + float2 texsize2 = g_fItemImageSizes2 / g_fCurrent_Size; + float2 texlocal1 = (In.vTexcoord - texpos1) / texsize1; + float2 texlocal2 = (In.vTexcoord - texpos2) / texsize2; + + + bool inside1 = all(texlocal1 >= 0.0f && texlocal1 <= 1.0f); + float4 tex6 = g_Texture4.Sample(DefaultSampler, texlocal1); + + if (inside1) + color = lerp(color, tex6, tex6.a); + + bool inside2 = all(texlocal2 >= 0.0f && texlocal2 <= 1.0f); + + float4 tex7 = g_Texture5.Sample(DefaultSampler, texlocal2); + if (inside2) + color = lerp(color, tex7, tex7.a); + + color.a *= Alpha; + + Out.vColor = color; + return Out; +} + technique11 PosTexTechnique11 { pass Default @@ -856,4 +1088,24 @@ technique11 PosTexTechnique11 PixelShader = compile ps_5_0 PS_Revelio(); } + pass Potion + { + 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_Potion(); + } + + pass Magic_Item + { + 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_Magic_Item(); + } + } diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index 80c098524..f101106b7 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -99,7 +99,7 @@ HRESULT CLevel_GamePlay::Ready_Background() return E_FAIL; } - CInfoInstance::GetInstance()->Load_MapObjects("ClientTest"); + //CInfoInstance::GetInstance()->Load_MapObjects("ClientTest"); return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 3bd3572cc..7965426e1 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -398,72 +398,72 @@ HRESULT CLoader::Loading_For_GamePlay() }); #pragma region MAP_MODELS - vector> jobFutures; + //vector> jobFutures; - _uint iLoadCount = 5; - vector*> Contents(iLoadCount); + //_uint iLoadCount = 5; + //vector*> Contents(iLoadCount); - { /* Terrain */ - jobFutures.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain", - ".bin", false, - &Contents[jobFutures.size()] - )); - jobFutures.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain", - ".bin", false, - &Contents[jobFutures.size()] - )); - } + //{ /* Terrain */ + // jobFutures.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Collision/Terrain", + // ".bin", false, + // &Contents[jobFutures.size()] + // )); + // jobFutures.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/Common/Meshes/Terrain", + // ".bin", false, + // &Contents[jobFutures.size()] + // )); + //} - { /* Ollivanders*/ - jobFutures.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes", - ".bin", false, - &Contents[jobFutures.size()] - )); - jobFutures.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision", - ".bin", false, - &Contents[jobFutures.size()] - )); - } + //{ /* Ollivanders*/ + // jobFutures.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Meshes", + // ".bin", false, + // &Contents[jobFutures.size()] + // )); + // jobFutures.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Ollivanders/Collision", + // ".bin", false, + // &Contents[jobFutures.size()] + // )); + //} - { /* Gatehouse*/ - jobFutures.emplace_back(Deferred_FolderLoad( - "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes", - ".bin", false, - &Contents[jobFutures.size()] - )); - } + //{ /* Gatehouse*/ + // jobFutures.emplace_back(Deferred_FolderLoad( + // "../Bin/Resources/Models/MapMesh/Game/Environment/Hogsmeade/BLDG_Gatehouse/Meshes", + // ".bin", false, + // &Contents[jobFutures.size()] + // )); + //} - for (auto& jobFuture : jobFutures) - { - jobFuture.get(); - } + //for (auto& jobFuture : jobFutures) + //{ + // jobFuture.get(); + //} - for (_uint i = 0; i < Contents.size(); ++i) { - for (_uint j = 0; j < (Contents[i])->size(); ++j) { - FOLDER_LOAD* pContents = (*Contents[i])[j]; - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) { - return E_FAIL; - } + //for (_uint i = 0; i < Contents.size(); ++i) { + // for (_uint j = 0; j < (Contents[i])->size(); ++j) { + // FOLDER_LOAD* pContents = (*Contents[i])[j]; + // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pModelTag, pContents->pLoadedModel))) { + // return E_FAIL; + // } - for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) { - if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) { - return E_FAIL; - } - } + // for (_uint k = 0; k < pContents->pRigidBodyTags.size(); ++k) { + // if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, pContents->pRigidBodyTags[k], pContents->LoadedRigidBody[k]))) { + // return E_FAIL; + // } + // } - } - } + // } + //} - for (_uint i = 0; i < Contents.size(); ++i) { - for (_uint j = 0; j < (Contents[i])->size(); ++j) { - Safe_Delete((*Contents[i])[j]); - } - Safe_Delete(Contents[i]); - } + //for (_uint i = 0; i < Contents.size(); ++i) { + // for (_uint j = 0; j < (Contents[i])->size(); ++j) { + // Safe_Delete((*Contents[i])[j]); + // } + // Safe_Delete(Contents[i]); + //} #pragma endregion diff --git a/Jusin154_Team3D/Client/Private/Player_States.cpp b/Jusin154_Team3D/Client/Private/Player_States.cpp index 1fde4538a..351319525 100644 --- a/Jusin154_Team3D/Client/Private/Player_States.cpp +++ b/Jusin154_Team3D/Client/Private/Player_States.cpp @@ -22,6 +22,20 @@ #include "Bombard.h" +template +void CPlayer::Spawn_Effect() +{ + CPartObject::PARTOBJECT_DESC PartsDesc{}; + + PartsDesc.pParentTransform = m_pTransformCom; + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, nullptr))) { + assert(false); + return; + } +} + + #pragma region States void CPlayer::TestKeyInput(_float fTimeDelta) { @@ -64,6 +78,7 @@ HRESULT CPlayer::InputAction() || m_pGameInstance->Key_Down(DIK_LSHIFT) || m_pGameInstance->Key_Down(DIK_C) || m_pGameInstance->Key_Down(DIK_V) + || m_pGameInstance->Key_Down(DIK_Z) ) { return S_OK; @@ -203,10 +218,12 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) } else if (absDir < XMConvertToRadians(135.f)) { - if (cross > 0.f) + if (cross > 0.f) { pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_L]; - else - pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R]; + } + else { + pairAnimInfo = m_Animation[STATEANIM::IDLE_TURN_R]; + } } else { @@ -214,7 +231,7 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta) } m_pFSM->Enable_State(FSMSTATE::IDLE_TURN); - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,m_fAmount); } return E_FAIL; @@ -291,18 +308,12 @@ void CPlayer::Behavior_MoveEnter() m_pFSM->Enable_State(FSMSTATE::JOG); m_bSprintToggle = false; m_bWalkToggle = false; - if (bFoward) - { - pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; - } - else if (bBackward) - { - pairAnimInfo = m_Animation[STATEANIM::JOG_BWD]; - } + pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; + m_bRatio = true; } } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second, m_fAmount, m_bRatio); m_fAmount = 1.f; } @@ -335,6 +346,9 @@ HRESULT CPlayer::Behavior_MoveExitCheck() else if (m_pGameInstance->Key_Down(DIK_V)) { m_pFSM->Change_State(FSMSTATE::COMBAT); } + else if (m_pGameInstance->Key_Down(DIK_Z)) { + m_pFSM->Change_State(FSMSTATE::COMBAT); + } else if (m_pGameInstance->Key_Down(DIK_LSHIFT)) { m_bSprintToggle = !m_bSprintToggle; m_bWalkToggle = false; @@ -418,20 +432,27 @@ HRESULT CPlayer::Behavior_MoveExitCheck() if (absDir <= XMConvertToRadians(80.f)) { pairAnimInfo = m_Animation[STATEANIM::JOG_FWD]; } - else if (absDir < XMConvertToRadians(170.f)) { + else if (absDir < XMConvertToRadians(160.f)) { if (cross > 0) { pairAnimInfo = m_Animation[STATEANIM::JOG_LEFT]; + m_fAmount = 0.2f; + m_bRatio = true; } - else + else { pairAnimInfo = m_Animation[STATEANIM::JOG_RIGHT]; - + m_fAmount = 0.2f; + m_bRatio = true; + } } else { pairAnimInfo = m_Animation[STATEANIM::JOG_BWD]; + m_fAmount = 0.2f; + m_bRatio = true; } - m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second,m_fAmount, m_bRatio); + m_fAmount = 1.f; } } return S_OK; @@ -615,7 +636,10 @@ void CPlayer::Behavior_CombatEnter() else if (m_pGameInstance->Key_Down(DIK_V)) { m_pFSM->Enable_State(FSMSTATE::MAPHELP); pairAnimInfo = m_Animation[STATEANIM::MAPHELP]; - + } + else if (m_pGameInstance->Key_Down(DIK_Z)) { + m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW); + pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW]; } m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); @@ -667,6 +691,11 @@ HRESULT CPlayer::Behavior_CombatExitCheck() pairAnimInfo = m_Animation[STATEANIM::MAPHELP]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); } + else if (m_pGameInstance->Key_Down(DIK_Z)) { + m_pFSM->Enable_State(FSMSTATE::ANCIENT_THROW); + pairAnimInfo = m_Animation[STATEANIM::ANCIENT_THROW]; + m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); + } } if (m_pFSM->IsEnable(FSMSTATE::SPELL) && IsCurrentKeyFrame("Combat")) @@ -679,16 +708,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck() { /* TODO 임시 방편 */ pairAnimInfo = m_Animation[STATEANIM::ACCIO]; - - CPartObject::PARTOBJECT_DESC PartsDesc{}; - - PartsDesc.pParentTransform = m_pTransformCom; - - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(NEXT_LEVEL, NEXT_LEVEL, TEXT("Layer_Effect"), &PartsDesc, this, nullptr))) { - assert(false); - return E_FAIL; - } - + } break; case STATEANIM::DESCENDO: @@ -698,15 +718,30 @@ HRESULT CPlayer::Behavior_CombatExitCheck() break; } m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - m_eSpell = STATEANIM::END; + m_pModelCom->Anim_Event(0.1f, m_Animation[STATEANIM::ACCIO].first, [this]() { + Spawn_Effect(); + m_eSpell = STATEANIM::END; + return E_FAIL; + }); + } + } + + + if (m_pFSM->IsEnable(FSMSTATE::ANCIENT_THROW)) + { + if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Throw")) { + m_pFSM->Change_State(FSMSTATE::MOVE); + return E_FAIL; + } + } + else + { + if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) { + m_pFSM->Change_State(FSMSTATE::MOVE); return E_FAIL; } } - if (SUCCEEDED(InputMove()) && IsCurrentKeyFrame("Combat")) { - m_pFSM->Change_State(FSMSTATE::MOVE); - return E_FAIL; - } if (m_pModelCom->IsFinishedAnim()) { m_pFSM->Change_State(FSMSTATE::IDLE); @@ -718,7 +753,7 @@ HRESULT CPlayer::Behavior_CombatExitCheck() void CPlayer::Behavior_CombatExit() { - m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL | FSMSTATE::SKILL2 | FSMSTATE::MAPHELP); + m_pFSM->Disable_State(FSMSTATE::COMBAT | FSMSTATE::LIGHT_ATTACK | FSMSTATE::SPELL | FSMSTATE::SKILL | FSMSTATE::SKILL2 | FSMSTATE::MAPHELP | FSMSTATE::ANCIENT_THROW); } void CPlayer::Add_FSM() @@ -745,9 +780,13 @@ void CPlayer::Add_FSM() _vector xmvPlayerDir = { }; { - _float3 fMove = m_pGameInstance->Get_MouseMove(); - m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x* 0.08f); - m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.y * 0.08f); + if (!m_pFSM->IsEnable(FSMSTATE::STOP)) + { + _float3 fMove = m_pGameInstance->Get_MouseMove(); + m_pTransformCom->Turn(m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.x * 0.05f); + m_pTransformCom->Turn(-m_pTransformCom->Get_State(STATE::UP), fTimeDelta * fMove.y * 0.05f); + } + if (m_pGameInstance->Key_Pressing(DIK_A)) { xmvPlayerDir -= xmvRight; @@ -837,7 +876,7 @@ void CPlayer::Set_Anim() m_Animation[STATEANIM::JOG_FWD] = { 167,true }; m_Animation[STATEANIM::JOG_LEFT] = { 164,false }; m_Animation[STATEANIM::JOG_RIGHT] = { 185,false }; - m_Animation[STATEANIM::JOG_BWD] = { 154,false }; + m_Animation[STATEANIM::JOG_BWD] = { 154,false };//176 m_Animation[STATEANIM::JOG_STOP] = { 289,false }; m_Animation[STATEANIM::JUMP] = { 205,false }; @@ -863,6 +902,7 @@ void CPlayer::Set_Anim() m_Animation[STATEANIM::LUMOS] = { 782,false }; m_Animation[STATEANIM::DISILLUSION_ENTER] = { 585,false }; m_Animation[STATEANIM::DISILLUSION_EXIT] = { 586,false }; + m_Animation[STATEANIM::ANCIENT_THROW] = { 843,false }; } #pragma endregion State diff --git a/Jusin154_Team3D/Client/Public/Player.h b/Jusin154_Team3D/Client/Public/Player.h index 329c0a62a..1a74a3b98 100644 --- a/Jusin154_Team3D/Client/Public/Player.h +++ b/Jusin154_Team3D/Client/Public/Player.h @@ -68,14 +68,19 @@ class CPlayer final : public CUnit public: virtual void Reset_Sprint() { m_bSprintToggle = false; } virtual void Reset_Walk() { m_bWalkToggle = false; } + template + void Spawn_Effect(); private: + + void TestKeyInput(_float fTimeDelta); virtual void Add_FSM(); virtual void Set_Anim(); _float m_fAmount = { 1.f }; _float m_fInputTime = {}; + _bool m_bRatio = { false }; HRESULT InputAction(); HRESULT InputMove(); diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin index 91c7e8e1e..1659b3c53 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Models/Human/Npc/KeyFrame.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:56496c4f0e1287cdf3bd6e596766288eec8262a08aebfbf91090c81ebb82aa49 -size 59 +oid sha256:c72bebef45c2f8b41a979d946702bdbe447aefb9c1a055e66c91901e3bc21e5b +size 72 diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index 403d6720b..1a57a01fe 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -77,7 +77,7 @@ HRESULT CEffectObject::Render_Blur() if (m_EffectInfo.eShaderPass == SHADER_PASS_INSTANCE_MODEL::NON_WORLD) { - BlurPass = SHADER_PASS_INSTANCE_MODEL::BLUR_NO_WORLD; + BlurPass = SHADER_PASS_INSTANCE_MODEL::NON_WORLD_BLUR; } else { diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp index fb200e130..bf037a3e5 100644 --- a/Jusin154_Team3D/Editor/Private/Player.cpp +++ b/Jusin154_Team3D/Editor/Private/Player.cpp @@ -105,6 +105,9 @@ void CPlayer::Late_Update(_float fTimeDelta) HRESULT CPlayer::Render() { + + if (!m_bVisible) + return S_OK; if (FAILED(Bind_ShaderResources())) { return E_FAIL; } @@ -323,6 +326,6 @@ void CPlayer::Describe_Entity() string AnimList = m_pModelCom->Get_AnimList(m_pModelCom->Get_AnimIndex()); GUI::Text(AnimList.c_str()); - //GUI::Checkbox("Render", &m_bVisible); + GUI::Checkbox("Render", &m_bVisible); } diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index 09936371a..d7a83e80b 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -24,7 +24,7 @@ namespace Editor enum class SHADER_PASS_NORTEX { DEFAULT, TERRAIN, END }; enum class SHADER_PASS_PARTICLE { EXPLOSION, END }; enum class SHADER_PASS_POSTEX { DEFAULT, SCISSOR, UI, UVMOVE, TRAIL, TRAIL_BLUR ,END }; - enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, END }; + enum class SHADER_PASS_INSTANCE_MODEL { DEFAULT, NON_NOMALMAP, BLUR, WEIGHTBLEND, NON_WORLD, NON_WORLD_BLUR, ALPHA_BLEND, END }; enum class SHADER_PASS_UIEDITOR { DEFAULT, ALPHABLEND, CLAMP, CURSOR, LODING, HOLD_ROTATION, MISSION, QUESTYPE, UVMULT, NINECLICE, ROTATION, SLOT, SPELLTYPE, HPBAR, MAGIC_METER, MAGIC_ICON, REMOVEUV, REVELIO, POTION, MAGIC_ITEM, END }; enum class SHADER_PASS_UIINTANCE { DEFAULT, ALPHABLEND, MAGIC_METER, END }; diff --git a/Jusin154_Team3D/Engine/Private/Channel.cpp b/Jusin154_Team3D/Engine/Private/Channel.cpp index 9c3c5fe5c..bfc749398 100644 --- a/Jusin154_Team3D/Engine/Private/Channel.cpp +++ b/Jusin154_Team3D/Engine/Private/Channel.cpp @@ -189,12 +189,11 @@ void CChannel::Update_TransformationMatirx( _float dz = XMVectorGetZ(vDeltaAdjusted); _vector vDeltaWorld = vRight * dx + (vUp * dz) + (-vLook * dy); - if (fabsf(dx) < FLT_EPSILON3 && fabsf(dy) < FLT_EPSILON3 && fabsf(dz) < FLT_EPSILON3) { - int a = 0; - } vDeltaWorld *= 0.01f; vDeltaWorld *= m_fAmount; + + vDeltaWorld = XMVectorSetW(vDeltaWorld, 1.f); //pTransform->Set_State(STATE::POSITION,vDeltaWorld); pTransform->AccumulateMomentum(vDeltaWorld); @@ -202,7 +201,7 @@ void CChannel::Update_TransformationMatirx( m_vPrevRootPos = vCurRootPos; vTranslation = XMVectorZero(); - _float4 curRotF4; + _float4 curRotF4; XMStoreFloat4(&curRotF4, vRotation); _vector qCur = XMLoadFloat4(&curRotF4); @@ -227,11 +226,9 @@ void CChannel::Update_TransformationMatirx( _float4 axis; XMStoreFloat4(&axis, axisWorld); + swap(axis.z, axis.y); - - - if (angle > 0 ) - pTransform->TurnAngle(XMLoadFloat4(&axis), angle); + pTransform->TurnAngle(XMLoadFloat4(&axis), angle); } XMStoreFloat4(&m_vPrevRootRot, qCur); diff --git a/Jusin154_Team3D/Engine/Private/Model.cpp b/Jusin154_Team3D/Engine/Private/Model.cpp index ccb805b33..422eec67f 100644 --- a/Jusin154_Team3D/Engine/Private/Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Model.cpp @@ -124,9 +124,15 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform) CAnimation* pCurAnim = m_Animations[m_iCurrentAnimIndex]; CAnimation* pPreAnim = m_Animations[m_iPreAnimIndex]; - //_bool bPreFinished = pPreAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount); + _bool bCurFinished; + + if (m_bRatio) { + bCurFinished = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount * fRatio); + } + else { + bCurFinished = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount); + } - _bool bCurFinished = pCurAnim->Update_TransformationMatrices(m_Bones, m_pLocalPos, m_bIsLoop, fTimeDelta, pTransform, m_fAmount); pCurAnim->InterpAnim(pPreAnim, m_Bones, fRatio); @@ -136,6 +142,7 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform) { m_iPreAnimIndex = m_iCurrentAnimIndex; m_fBlendTime = 0.f; + m_bRatio = false; } } else @@ -153,7 +160,7 @@ _bool CModel::Play_Animation(_float fTimeDelta, CTransform* pTransform) return m_bIsFinishedAnim; } -void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount) +void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount,_bool bRatio) { if (m_iCurrentAnimIndex == iIndex){ return; @@ -163,6 +170,7 @@ void CModel::Set_AnimationIndex(_uint iIndex, _bool isLoop,_float fAmount) m_iCurrentAnimIndex = iIndex; m_bIsLoop = isLoop; m_fAmount = fAmount; + m_bRatio = bRatio; m_Animations[m_iCurrentAnimIndex]->Depart_Animation(); m_Animations[m_iCurrentAnimIndex]->ResetRootMotion(); } @@ -235,6 +243,18 @@ void CModel::Set_AnimSpeed(_float fSpeed) m_Animations[m_iCurrentAnimIndex]->Set_AnimSpeed(fSpeed); } +HRESULT CModel::Anim_Event(_float fRatio,_uint AnimIndex,function Event) +{ + if (AnimIndex == m_iCurrentAnimIndex) + { + if (m_Animations[m_iCurrentAnimIndex]->Get_CurrentTrackProgressRatio() >= fRatio) + { + Event(); + } + } + return E_FAIL; +} + HRESULT CModel::Render(_uint iMeshIndex) { diff --git a/Jusin154_Team3D/Engine/Private/Transform.cpp b/Jusin154_Team3D/Engine/Private/Transform.cpp index c8d7f8d70..a467f38ce 100644 --- a/Jusin154_Team3D/Engine/Private/Transform.cpp +++ b/Jusin154_Team3D/Engine/Private/Transform.cpp @@ -230,8 +230,9 @@ void CTransform::TurnAngle(_vector vAxis, _float fAngle) _vector vRight = Get_State(STATE::RIGHT); _vector vUp = Get_State(STATE::UP); _vector vLook = Get_State(STATE::LOOK); - if (vAxis.m128_f32[0] == 0&& - vAxis.m128_f32[1] == 0&& + + if (vAxis.m128_f32[0] == 0 && + vAxis.m128_f32[1] == 0 && vAxis.m128_f32[2] == 0) return; diff --git a/Jusin154_Team3D/Engine/Public/Animation.h b/Jusin154_Team3D/Engine/Public/Animation.h index 630c2b9d8..9593cbaaa 100644 --- a/Jusin154_Team3D/Engine/Public/Animation.h +++ b/Jusin154_Team3D/Engine/Public/Animation.h @@ -12,8 +12,7 @@ class ENGINE_DLL CAnimation : public CBase virtual ~CAnimation() = default; public: _bool Update_TransformationMatrices(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, _bool bIsLoop, _float fTimeDelta, class CTransform* pTransform = nullptr, _float m_fAmount = 1.f); - void Reset(); - void ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, CTransform* pTransform, _float m_fAmount); + void ProgressAnimation(const vector& Bones, const LOCALPOS_DESC* pLocalPosArray, CTransform* pTransform, _float m_fAmount); void ResetRootMotion(); void Depart_Animation(); void Set_AnimPause(_bool bValue) { m_bPause = bValue; } diff --git a/Jusin154_Team3D/Engine/Public/FSM.h b/Jusin154_Team3D/Engine/Public/FSM.h index 7dcf58e2b..c68ae35ad 100644 --- a/Jusin154_Team3D/Engine/Public/FSM.h +++ b/Jusin154_Team3D/Engine/Public/FSM.h @@ -18,8 +18,9 @@ enum ESTATE : _u64Flag SPELL = 1ULL << 11, SKILL = 1ULL << 12, SKILL2 = 1ULL << 13, - MAPHELP = 1ULL << 14, - STOP = 1ULL << 15, + ANCIENT_THROW = 1ULL << 14, + MAPHELP = 1ULL << 15, + STOP = 1ULL << 16, END }; NS_END diff --git a/Jusin154_Team3D/Engine/Public/Model.h b/Jusin154_Team3D/Engine/Public/Model.h index 8a1eb3283..0175e3c39 100644 --- a/Jusin154_Team3D/Engine/Public/Model.h +++ b/Jusin154_Team3D/Engine/Public/Model.h @@ -32,8 +32,8 @@ class ENGINE_DLL CModel final : public CComponent virtual HRESULT Render_Indexed(_uint iMeshIndex, _uint IndexCount, _uint StartIndexLocation, _uint BaseVertexLocation); #pragma endregion #pragma region Animation - _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr); // 애니메이션에 델타타임을 넣어줌 - void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f); + _bool Play_Animation(_float fTimeDelta, class CTransform* pTransform = nullptr ); // 애니메이션에 델타타임을 넣어줌 + void Set_AnimationIndex(_uint iIndex, _bool isLoop = true, _float fAmount = 1.f, _bool bRatio = false); _bool IsFinishedAnim() const { return m_bIsFinishedAnim; } _bool IsLoopAnim() const { return m_bIsLoop; } void Set_CurrentTrackPosition(_float TrackPosition); @@ -47,6 +47,8 @@ class ENGINE_DLL CModel final : public CComponent _int Get_AnimIndex() const { return m_iCurrentAnimIndex; } _float Get_AnimSpeed(); void Set_AnimSpeed(_float fSpeed); + + HRESULT Anim_Event(_float fRatio, _uint AnimIndex, function Event); #pragma endregion #pragma region Mesh const _char* Get_MeshName(_uint iIndex); @@ -111,7 +113,7 @@ void Combined_BoneMatrix(); _bool m_bIsFinishedAnim = { false }; // 대상 애니메이션이 끝났는지 _bool m_bIsFinishedLerp = { false }; // 럴프 애니메이션이 끝났는지 _bool m_bPlayAnim = { true }; - _float m_fAmount = { 1.f }; + _float m_fAmount = { 1.f }; _int m_iPreAnimIndex = { 0 }; _float m_fBlendTime = { 0.f }; @@ -135,6 +137,7 @@ void Combined_BoneMatrix(); // vector<_float4x4> m_BoneMatrix; + _bool m_bRatio = { false }; #pragma region Compute @@ -146,6 +149,7 @@ void Combined_BoneMatrix(); void Create_LocalPosVB(); void Create_Con(); void UpdateAnimationCS(); + _uint m_iNumBuffer = {}; vector m_Parent = {}; diff --git a/Jusin154_Team3D/Engine/Public/State.h b/Jusin154_Team3D/Engine/Public/State.h index 608ccb088..09fdc0d11 100644 --- a/Jusin154_Team3D/Engine/Public/State.h +++ b/Jusin154_Team3D/Engine/Public/State.h @@ -13,7 +13,7 @@ enum ESTATE LAND, DODGE,DODGE_BLINK, COMBAT, LIGHT_ATTACK, SPELL, SKILL, SKILL2, - ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,DISILLUSION_ENTER,DISILLUSION_EXIT, + ACCIO,DESCENDO,DIFFINDO,DEPULSO,LUMOS,DISILLUSION_ENTER,DISILLUSION_EXIT, ANCIENT_THROW, MAPHELP, END };