diff --git a/Jusin154_Team3D/Client/Private/Loader.cpp b/Jusin154_Team3D/Client/Private/Loader.cpp index 44d567c2d..0c705b482 100644 --- a/Jusin154_Team3D/Client/Private/Loader.cpp +++ b/Jusin154_Team3D/Client/Private/Loader.cpp @@ -1542,6 +1542,52 @@ HRESULT CLoader::Loading_For_GamePlay() }); + Asset_FileLoad("../Bin/Resources/Textures/Effect/Nomal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Textures/Effect/Decal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + + + Asset_FileLoad("../Bin/Resources/Textures/Effect/DecalNormal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(g_iStaticLevel, wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0)))) { + return E_FAIL; + } + + return S_OK; + + }); + #pragma endregion diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse.bin new file mode 100644 index 000000000..093baf4be --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbbe101306b0fe56ac803a185ae9e02ef1dbd1b74deee409a19854f1e7df99e0 +size 433 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBomb/Red_Sphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBomb/Red_Sphere.bin deleted file mode 100644 index f22fac9b3..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBomb/Red_Sphere.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78c6b60e1cff2a7adad7feb3bfdeb0f2f8413cd1f1fc9670ad3d159808f528b2 -size 1146 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBomb/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBomb/Rock_PT.bin deleted file mode 100644 index bf260d482..000000000 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokBomb/Rock_PT.bin +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:425fee10f13fdb8e64e765a8bdc1d622aab3f6d4a613b7eaf47a5a687c112554 -size 1098 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin new file mode 100644 index 000000000..5afe5b2b4 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f96b04ab17f1f5e6d880b537b917cc3ae5384ba826f5115a14cd73595953e988 +size 1116 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin new file mode 100644 index 000000000..53c2fcfef --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/BottomSplatter2.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f83d873f2bdd8b2fe2128c86a9db3300a28c9d1d878fb81b3eba4bb14a5e521 +size 1109 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin new file mode 100644 index 000000000..2446a2e7a --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Bottom_Decal.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1c7e1ca687ed211671f1d6bd2370445b5fd4730a43f8ddbf4491a3c52363c1e +size 1124 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin new file mode 100644 index 000000000..86cf3ffbc --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Red_Sphere.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74ac12fa89e4a08dc1459a3a1a86bc4e52f15925aca73f7ae533bd3aa8c0b320 +size 1146 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin new file mode 100644 index 000000000..69f0488d6 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Rock_PT.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d805f9415164c23fe9de98efe866a6903230aa2634b241b2e04d94c6dfe7579 +size 1098 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Smoke.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Smoke.bin new file mode 100644 index 000000000..7d09ca8f5 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Ranrok/RanrokPulse/Smoke.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a27a4eac6b7e4b3245748c71235af792cf4f7151c5b2019abd4abbd2a1c4eae7 +size 1095 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 48568ebd5..d9811a801 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -178,20 +178,19 @@ void CS_MAIN( if (isRoundLengthLerp == true) { - if(particle.vLifeTime.x < particle.vLifeTime.y) + if (particleValue.vDelay.x < particleValue.vDelay.y) { float3 vRoundRange = float3( particleValue.fRoundRangeLength * cos(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle), particleValue.fRoundRangeLength * sin(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle), - particleValue.fRoundRangeLength * cos(particleValue.fPolarAngle) - ); + particleValue.fRoundRangeLength * cos(particleValue.fPolarAngle)); particleValue.vOriginTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta; particle.vTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta; + } } - particleValue.vDelay.x += fTimeDelta; if (particleValue.vDelay.x < particleValue.vDelay.y) diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index 3b3a19c6b..fec70a076 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -738,11 +738,16 @@ float4 DrawEffect(PS_IN In) float2 vDissolveUV = In.vTexcoord + SelectLerpUV(g_vDissolveUVGainAmount, (vDissolveUVMoveTime.x / vDissolveUVMoveTime.y), 0); - if (g_isDissolveMove) - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV); - else - vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); - + + if (g_fDissolveCutRatio > FLT_EPSILON5) + { + if (g_isDissolveMove) + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, vDissolveUV); + else + vMtrlDissolve = g_DissolveTexture.Sample(DefaultSampler, In.vTexcoord); + } + + /* */ float fDissolveValue = vMtrlDissolve.r; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_H.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_H.png new file mode 100644 index 000000000..4f40c8ce2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_H.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_Med_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_Med_D.png new file mode 100644 index 000000000..8f4f8f167 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_Med_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_Med_H.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_Med_H.png new file mode 100644 index 000000000..91a96612f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Dirt_Med_H.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Rock_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Rock_D.png new file mode 100644 index 000000000..504ec2288 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Rock_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Rock_H.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Rock_H.png new file mode 100644 index 000000000..705fe34ee Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Rock_H.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Water_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Water_D.png new file mode 100644 index 000000000..722efeb96 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Water_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Water_Large_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Water_Large_D.png new file mode 100644 index 000000000..f24ebd6e4 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_Water_Large_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_D.png new file mode 100644 index 000000000..8fe86bebe Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_H.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_H.png new file mode 100644 index 000000000..09c1a51ba Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_H.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_Soft_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_Soft_D.png new file mode 100644 index 000000000..18968edee Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_FX_Decal_claw_Soft_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_Scorch_Black_Edgy_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_Scorch_Black_Edgy_D.png new file mode 100644 index 000000000..30f50ecba Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/T_Scorch_Black_Edgy_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_AMFireball02Impact01_Decal_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_AMFireball02Impact01_Decal_D.png new file mode 100644 index 000000000..02a79934b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_AMFireball02Impact01_Decal_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_AMFireball02Impact01_Decal_DSP.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_AMFireball02Impact01_Decal_DSP.png new file mode 100644 index 000000000..4115fa4f2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_AMFireball02Impact01_Decal_DSP.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGCL_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGCL_01_D.png new file mode 100644 index 000000000..6d0662979 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGCL_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGCSt_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGCSt_01_D.png new file mode 100644 index 000000000..cce2a075f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGCSt_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGSK_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGSK_01_D.png new file mode 100644 index 000000000..667270163 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateGSK_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOLC_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOLC_01_D.png new file mode 100644 index 000000000..6988e4d7c Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOLC_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOLK_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOLK_01_D.png new file mode 100644 index 000000000..ed946f0db Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOLK_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOSC_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOSC_01_D.png new file mode 100644 index 000000000..d3cbb7c2b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOSC_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOStFC_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOStFC_01_D.png new file mode 100644 index 000000000..3e62bc60b Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateOStFC_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateYStK_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateYStK_01_D.png new file mode 100644 index 000000000..3a9559c3d Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_FrolicsomeFelinePlateYStK_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Helen_Neck_Slash_01_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Helen_Neck_Slash_01_D.png new file mode 100644 index 000000000..8c4b0f3f2 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Helen_Neck_Slash_01_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_LavaDecal_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_LavaDecal_D.png new file mode 100644 index 000000000..6e05dd44e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_LavaDecal_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_ScorchBlack_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_ScorchBlack_D.png new file mode 100644 index 000000000..868be2b34 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_ScorchBlack_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Scorch_Black_Expell_Test_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Scorch_Black_Expell_Test_D.png new file mode 100644 index 000000000..02898ef51 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Scorch_Black_Expell_Test_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_ShatterdGlass_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_ShatterdGlass_D.png new file mode 100644 index 000000000..bbffb8696 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_ShatterdGlass_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Splatter_Decals_2_D.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Splatter_Decals_2_D.png new file mode 100644 index 000000000..c83e5bc54 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/Decal/VFX_T_Splatter_Decals_2_D.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Dirt_Med_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Dirt_Med_N.png new file mode 100644 index 000000000..336878e7f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Dirt_Med_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Rock_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Rock_N.png new file mode 100644 index 000000000..89cfe683f Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Rock_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Water_Large_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Water_Large_N.png new file mode 100644 index 000000000..3305945ed Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Water_Large_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Water_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Water_N.png new file mode 100644 index 000000000..4651d20ae Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_Water_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_claw_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_claw_N.png new file mode 100644 index 000000000..a58febfcd Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_claw_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_claw_Soft_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_claw_Soft_N.png new file mode 100644 index 000000000..d5f44bca8 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/T_FX_Decal_claw_Soft_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_AMFireball02Impact01_Decal_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_AMFireball02Impact01_Decal_N.png new file mode 100644 index 000000000..89370e94a Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_AMFireball02Impact01_Decal_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Blast_Packed_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Blast_Packed_N.png new file mode 100644 index 000000000..0f3872008 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Blast_Packed_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_LavaDecal_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_LavaDecal_N.png new file mode 100644 index 000000000..4d65d1c59 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_LavaDecal_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_ShatterdGlass_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_ShatterdGlass_N.png new file mode 100644 index 000000000..ab26bb8c6 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_ShatterdGlass_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Slythern_Tree_01_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Slythern_Tree_01_N.png new file mode 100644 index 000000000..6672318a7 Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Slythern_Tree_01_N.png differ diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Splatter_Decals_2_N.png b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Splatter_Decals_2_N.png new file mode 100644 index 000000000..7c17c323e Binary files /dev/null and b/Jusin154_Team3D/Editor/Bin/Resources/Textures/Effect/DecalNormal/VFX_T_Splatter_Decals_2_N.png differ diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj b/Jusin154_Team3D/Editor/Default/Editor.vcxproj index 18835e8e9..c5cd76d34 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj @@ -211,6 +211,7 @@ call Update_Shaders.bat + @@ -469,6 +470,7 @@ call Update_Shaders.bat + diff --git a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters index 4df13c8ad..25fb63a58 100644 --- a/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters +++ b/Jusin154_Team3D/Editor/Default/Editor.vcxproj.filters @@ -706,6 +706,9 @@ {cfd0b003-cc18-48cf-a881-94e137b5dadc} + + {935b6ab0-e01b-4b4b-80d0-649a507d21c8} + @@ -1431,6 +1434,9 @@ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record + + 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse + @@ -2164,6 +2170,9 @@ 50.UI\GamePlay_Canvas\Broom_Panel\Broom_Record + + 02.GameObjects\Layer_Effect\Effect\Monster_Effect\Ranrok\Pulse + diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 4e70debfd..898cee3c5 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -329,8 +329,8 @@ HRESULT CEditEffect::Save_Effect(const _char* pPath) if (m_EffectInfo.isNomalMap) { - size_t iComponentLength = m_strNomalMapName.length(); - const _char* pFileComponentPath = m_strNomalMapName.c_str(); + size_t iComponentLength = m_strNormalMapName.length(); + const _char* pFileComponentPath = m_strNormalMapName.c_str(); if (!WriteFile(hFile, &iComponentLength, sizeof(size_t), &dwByte, nullptr)) { return E_FAIL; @@ -763,6 +763,17 @@ void CEditEffect::Describe_Entity() GUI::Spacing(); GUI::Spacing(); } + if (GUI::TreeNode("DECAL TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this, L"DECAL"); + + if (strName != "") { + m_strDiffuseName = strName; + } + + GUI::TreePop(); + } + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "DIFFUSE_TEXTURE", (CComponent**)&m_pDiffuse_TextureCom, nullptr, this); @@ -828,6 +839,18 @@ void CEditEffect::Describe_Entity() GUI::Spacing(); GUI::Spacing(); } + if (GUI::TreeNode("DECAL TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this, L"DECAL"); + + if (strName != "") { + m_strMaskingName = strName; + } + + GUI::TreePop(); + } + + string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "MASKING_TEXTURE", (CComponent**)&m_pMasking_TextureCom, nullptr, this); if (strName != "") { @@ -1005,12 +1028,25 @@ void CEditEffect::Describe_Entity() GUI::Spacing(); GUI::Spacing(); } + if (GUI::TreeNode("DECAL TEX")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this, L"DECAL"); + + if (strName != "") { + m_strNoiseName = strName; + } + + GUI::TreePop(); + } + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOISE_TEXTURE", (CComponent**)&m_pNoise_TextureCom, nullptr, this); if (strName != "") { m_strNoiseName = strName; } + + GUI::TreePop(); } @@ -1020,7 +1056,7 @@ void CEditEffect::Describe_Entity() if (m_EffectInfo.isNomalMap == true) { - if (GUI::TreeNode("NOMAL_TEX")) + if (GUI::TreeNode("NORMAL_TEX")) { if (m_pNormal_TextureCom != nullptr) { @@ -1031,12 +1067,32 @@ void CEditEffect::Describe_Entity() GUI::Spacing(); GUI::Spacing(); } - _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NOMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this , L"NOMAL"); + if (GUI::TreeNode("NORMAL")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this, L"NORMAL"); - if (strName != "") { - m_strNomalMapName = strName; + if (strName != "") { + m_strNormalMapName = strName; + } + + GUI::TreePop(); } + if (GUI::TreeNode("DECAL NORMAL")) + { + _string strName = m_pGameInstance->Asset_Description(ENUM_CLASS(LEVEL::EFFECT), "NORMAL_TEXTURE", (CComponent**)&m_pNormal_TextureCom, nullptr, this, L"DECALNORMAL"); + + if (strName != "") { + m_strNormalMapName = strName; + } + + GUI::TreePop(); + } + + + + + GUI::TreePop(); } } diff --git a/Jusin154_Team3D/Editor/Private/EffectObject.cpp b/Jusin154_Team3D/Editor/Private/EffectObject.cpp index 26b7114a7..dcb940d1e 100644 --- a/Jusin154_Team3D/Editor/Private/EffectObject.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectObject.cpp @@ -477,9 +477,9 @@ HRESULT CEffectObject::Load(const _char* pFilePath , LEVEL eLevel) return E_FAIL; } - m_strNomalMapName = szName; + m_strNormalMapName = szName; - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNomalMapName), + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNormalMapName), reinterpret_cast(&m_pNormal_TextureCom)))) return E_FAIL; } @@ -757,9 +757,9 @@ HRESULT CEffectObject::LoadPre(const _char* pFilePath, LEVEL eLevel) return E_FAIL; } - m_strNomalMapName = szName; + m_strNormalMapName = szName; - if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNomalMapName), + if (FAILED(__super::Add_Asset_Component(ENUM_CLASS(eLevel), CMyTools::ToWstring(m_strNormalMapName), reinterpret_cast(&m_pNormal_TextureCom)))) return E_FAIL; } diff --git a/Jusin154_Team3D/Editor/Private/EffectPool.cpp b/Jusin154_Team3D/Editor/Private/EffectPool.cpp index 7954cc101..38c7fbe47 100644 --- a/Jusin154_Team3D/Editor/Private/EffectPool.cpp +++ b/Jusin154_Team3D/Editor/Private/EffectPool.cpp @@ -24,6 +24,7 @@ #include "Ranrok_FireBall.h" #include "Ranrok_Breath.h" #include "Ranrok_Point.h" +#include "Ranrok_Pulse.h" CEffectPool::CEffectPool(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) : CGameObject(pDevice, pContext) @@ -343,6 +344,17 @@ HRESULT CEffectPool::Ready_MonsterEffect() return pEffect; } ))) return E_FAIL; + if (FAILED(Create_Effect(SKILL_TYPE::RANROK_PURSE, 5, NEXT_LEVEL, NEXT_LEVEL, [&](_uint iPrototypeLevel, _uint iCloneLevel) -> CEffect_Container* { + + CRanrok_Pulse* pEffect = nullptr; + + pEffect = m_pGameInstance->Clone_Prototype(iPrototypeLevel, nullptr); + + return pEffect; } + ))) return E_FAIL; + + + return S_OK; } diff --git a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp index 6ab24f334..df2e5e8cc 100644 --- a/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp +++ b/Jusin154_Team3D/Editor/Private/Effect_Editor.cpp @@ -58,7 +58,7 @@ HRESULT CEffect_Editor::Initialize(void* pArg) return E_FAIL; - m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); return S_OK; @@ -622,6 +622,11 @@ void CEffect_Editor::Describe_Entity() } } + if (GUI::Button("Reset Hierarchy")) + { + Reset_EditEffect(); + } + ImGui::EndPopup(); } #pragma endregion @@ -803,6 +808,8 @@ void CEffect_Editor::Describe_Entity() m_pEffectPool->Describe_Entity(); + + ImGui::End(); } diff --git a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp index 7f0558e53..0f8799a61 100644 --- a/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_EffectViewer.cpp @@ -66,19 +66,18 @@ HRESULT CLevel_EffectViewer::Initialize() // return E_FAIL; - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! + /* 논 블랜드 중에서도 최 하단으로 들어가야함 */ + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! { return E_FAIL; } - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, TEXT("Layer_Editor")))){ + + + if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, TEXT("Z_Layer_Editor")))){ return E_FAIL; } - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(ENUM_CLASS(LEVEL::EFFECT), NEXT_LEVEL, LAYER_CUBE))){ - // return E_FAIL; - //} - if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, LAYER_PLAYER))){ return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp index 7a1994213..b0a9b4638 100644 --- a/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp +++ b/Jusin154_Team3D/Editor/Private/Level_ObjectViewer.cpp @@ -757,7 +757,7 @@ HRESULT CLevel_ObjectViewer::Ready_Layer_UI(const _wstring& strLayerTag) HRESULT CLevel_ObjectViewer::Ready_Layer_Dummy(const _wstring& strLayerTag) { - //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! + //if (FAILED(m_pGameInstance->Add_GameObject_ToLayer(g_iStaticLevel, NEXT_LEVEL, TEXT("Z_Layer_EffectPool")))) //플레이어보다 먼저 생성해야함! //{ // return E_FAIL; //} diff --git a/Jusin154_Team3D/Editor/Private/Loader.cpp b/Jusin154_Team3D/Editor/Private/Loader.cpp index b676a313a..2203c066a 100644 --- a/Jusin154_Team3D/Editor/Private/Loader.cpp +++ b/Jusin154_Team3D/Editor/Private/Loader.cpp @@ -204,6 +204,7 @@ #include "Ranrok_FireBall.h" #include "Ranrok_Breath.h" #include "Ranrok_Point.h" +#include "Ranrok_Pulse.h" #pragma endregion #pragma region PHYSX_HEADER @@ -1410,7 +1411,38 @@ HRESULT CLoader::Loading_For_Effect() if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, - CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0 , L"NOMAL")))) { + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0 , L"NORMAL")))) { + return E_FAIL; + } + + return S_OK; + + }); + + + Asset_FileLoad("../Bin/Resources/Textures/Effect/Decal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"DECAL")))) { + return E_FAIL; + } + + return S_OK; + + }); + + Asset_FileLoad("../Bin/Resources/Textures/Effect/DecalNormal", L"Prototype_Texture_", [&](_wstring wstrFileName, const _char* pFilePath) { + + _string strFilePath = pFilePath; + _wstring wstrFilePath = CMyTools::ToWstring(strFilePath); + + + if (FAILED(m_pGameInstance->Add_Asset_Prototype(ENUM_CLASS(LEVEL::EFFECT), wstrFileName, + CTexture::Create(m_pDevice, m_pContext, TEXTURE_LOAD_TYPE::SINGLE, wstrFilePath.c_str(), 0, L"DECALNORMAL")))) { return E_FAIL; } @@ -1861,6 +1893,10 @@ HRESULT CLoader::Loading_For_Effect() return E_FAIL; } + if (FAILED(m_pGameInstance->Add_Prototype(NEXT_LEVEL, CRanrok_Pulse::Create(m_pDevice, m_pContext)))) { + return E_FAIL; + } + /* For.Prototype_GameObject_Wand */ if (FAILED(m_pGameInstance->Add_Prototype(g_iStaticLevel, CWand::Create(m_pDevice, m_pContext)))) return E_FAIL; diff --git a/Jusin154_Team3D/Editor/Private/Player.cpp b/Jusin154_Team3D/Editor/Private/Player.cpp index c000c4921..a0aafb636 100644 --- a/Jusin154_Team3D/Editor/Private/Player.cpp +++ b/Jusin154_Team3D/Editor/Private/Player.cpp @@ -77,7 +77,7 @@ HRESULT CPlayer::Initialize(void* pArg) m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody); - m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); m_pInfoInstance->Regist_PlayerAlly(this); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok.cpp b/Jusin154_Team3D/Editor/Private/Ranrok.cpp index 814857bff..1f2951d44 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok.cpp @@ -63,7 +63,7 @@ HRESULT CRanrok::Initialize(void* pArg) m_pCallBack_Behavior->Initialize(m_pCharacter_Controller, m_pRigidBody); m_pCallBack_HitReport->Initialize(m_pCharacter_Controller, m_pRigidBody,&m_bCollisionPlayer); - m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, -75.f, -15.f, 1.f)); diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp new file mode 100644 index 000000000..9c749ae30 --- /dev/null +++ b/Jusin154_Team3D/Editor/Private/Ranrok_Pulse.cpp @@ -0,0 +1,204 @@ +#include "pch.h" +#include "Ranrok_Pulse.h" + +#include "GameInstance.h" +#include "EditEffect.h" +#include "Wand.h" +#include "Player.h" +#include "InfoInstance.h" + +CRanrok_Pulse::CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) + : CEffect_Container{ pDevice, pContext } +{ +} + +CRanrok_Pulse::CRanrok_Pulse(const CRanrok_Pulse& rhs) + : CEffect_Container(rhs), + m_pInfoInstance(CInfoInstance::GetInstance()) +{ + SAFE_ADDREF(m_pInfoInstance); +} + +HRESULT CRanrok_Pulse::Initialize_Prototype() +{ + + + return S_OK; + +} + +HRESULT CRanrok_Pulse::Initialize(void* pArg) +{ + if (FAILED(__super::Initialize(pArg))) + return E_FAIL; + + if (FAILED(Ready_Components(pArg))) + return E_FAIL; + + + if (FAILED(Load_Package("../Bin/Resources/Data/Effect/MonsterPackage/Ranrok/RanrokPulse"))) + return E_FAIL; + + m_wstrEffectName = L"RanrokPulse"; + + + + m_fDuration = 15.f; + + + return S_OK; +} + +void CRanrok_Pulse::Priority_Update(_float fTimeDelta) +{ + __super::Priority_Update(fTimeDelta); + +} + +void CRanrok_Pulse::Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Update(fTimeDelta); + + Update_Event(fTimeDelta); + + + + + +} + +void CRanrok_Pulse::Late_Update(_float fTimeDelta) +{ + if (m_bVisible == false) + return; + + __super::Late_Update(fTimeDelta); + + +} + +HRESULT CRanrok_Pulse::Pre_Setting(CGameObject* pObject, void* pArg) +{ + if (FAILED(__super::Pre_Setting(pObject, nullptr))) + return E_FAIL; + + + /* 초기 객체 비지블*/ + + CEditEffect* pBottomDecal = Get_PartObject("Bottom_Decal"); + CEditEffect* pBottomSplatter = Get_PartObject("BottomSplatter"); + CEditEffect* pBottomSplatter2 = Get_PartObject("BottomSplatter2"); + CEditEffect* pRed_Sphere = Get_PartObject("Red_Sphere"); + CEditEffect* pRock_PT = Get_PartObject("Rock_PT"); + CEditEffect* pSmoke = Get_PartObject("Smoke"); + + pBottomDecal->Set_Visible(true); + pBottomSplatter->Set_Visible(true); + pBottomSplatter2->Set_Visible(true); + pRock_PT->Set_Visible(true); + pSmoke->Set_Visible(true); + + pRed_Sphere->Set_Visible(true); + + + /* 초기 객체 위치 초기화*/ + + CUnit* pPlayer = m_pInfoInstance->Get_NearestPlayerAlly(m_pOwner->Get_WorldPostion()).first; + + if (pPlayer == nullptr) + return E_FAIL; + + _vector vPlayer_FootPos = pPlayer->Get_Component()->Get_FootPosition(); + + XMStoreFloat4(&m_vTargetPos, vPlayer_FootPos); + + pBottomDecal->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos); + pBottomSplatter->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos); + pBottomSplatter2->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos); + pRock_PT->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos); + pSmoke->Get_Component()->Set_State(STATE::POSITION, vPlayer_FootPos); + + _vector vOwnerPos = m_pOwner->Get_Component()->Get_Position(); + + pRed_Sphere->Get_Component()->Set_State(STATE::POSITION, vOwnerPos); + + return S_OK; +} + +HRESULT CRanrok_Pulse::Ready_Components(void* pArg) +{ + if (FAILED(__super::Ready_Components(pArg))) { + return E_FAIL; + } + + return S_OK; +} + +HRESULT CRanrok_Pulse::Ready_Child() +{ + return S_OK; +} + +CRanrok_Pulse* CRanrok_Pulse::Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext) +{ + CRanrok_Pulse* pInstance = new CRanrok_Pulse(pDevice, pContext); + + if (FAILED(pInstance->Initialize_Prototype())) + { + MSG_BOX("Failed to Created : CRanrok_Pulse"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + + +CGameObject* CRanrok_Pulse::Clone(void* pArg, CGameObject* pOwner) +{ + CRanrok_Pulse* pInstance = new CRanrok_Pulse(*this); + pInstance->m_pOwner = pOwner; + if (FAILED(pInstance->Initialize(pArg))) + { + MSG_BOX("Failed to Cloned : CRanrok_Pulse"); + SAFE_RELEASE(pInstance); + } + + return pInstance; +} + +void CRanrok_Pulse::OnCollision(CGameObject* pOther, void* pDesc) +{ + if (m_bHit == false) + return; + + ON_COLLISION_INFO CollisionDesc = *static_cast(pDesc); + + _vector vPos = XMLoadFloat4(&CollisionDesc.vWorldPos); + + +} + +void CRanrok_Pulse::Free() +{ + __super::Free(); + + SAFE_RELEASE(m_pInfoInstance); + + +} +#ifdef _DEBUG +void CRanrok_Pulse::Describe_Entity() +{ + +} +#endif + +HRESULT CRanrok_Pulse::Bind_ShaderResources() +{ + return S_OK; +} + + diff --git a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp index 1c78059e1..f45d283a1 100644 --- a/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp +++ b/Jusin154_Team3D/Editor/Private/Ranrok_States.cpp @@ -622,9 +622,11 @@ void CRanrok::Behavior_PulseEnter() m_fSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)] = m_fMaxSkillCoolTime[ENUM_CLASS(RANROK_SKILL::PULSE)]; m_pModelCom->Set_AnimationIndex(pairAnimInfo.first, pairAnimInfo.second); - /*Add_Event(pairAnimInfo.first, - [this]() { CameraShake(10.f, 2.f, 5.f, 1.2f); }, - 0.39f);*/ + Add_Event(pairAnimInfo.first, + [this]() { + + m_pEffectPool->Use_Skill(SKILL_TYPE::RANROK_PURSE, this); + },0.39f); } HRESULT CRanrok::Behavior_PulseExitCheck(_float fTimeDelta) diff --git a/Jusin154_Team3D/Editor/Private/Troll.cpp b/Jusin154_Team3D/Editor/Private/Troll.cpp index 361d1ed97..7119fd54f 100644 --- a/Jusin154_Team3D/Editor/Private/Troll.cpp +++ b/Jusin154_Team3D/Editor/Private/Troll.cpp @@ -65,7 +65,7 @@ HRESULT CTroll::Initialize(void* pArg) m_pCharacter_Controller->Set_Position(XMVectorSet(3.f, 5.f, -20.f, 1.f)); - m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Layer_EffectPool"))->Get_Object(); + m_pEffectPool = m_pGameInstance->Get_Layer(NEXT_LEVEL, TEXT("Z_Layer_EffectPool"))->Get_Object(); SAFE_ADDREF(m_pEffectPool); m_pLeftHand_BoneMat = m_pModelCom->Get_BoneMatrixPtr("LeftHand"); diff --git a/Jusin154_Team3D/Editor/Public/Editor_Define.h b/Jusin154_Team3D/Editor/Public/Editor_Define.h index a541f9785..1af807dd8 100644 --- a/Jusin154_Team3D/Editor/Public/Editor_Define.h +++ b/Jusin154_Team3D/Editor/Public/Editor_Define.h @@ -61,7 +61,7 @@ namespace Editor JAP_SIDE, BOMBARDA_SIDE, DESCENDO_SIDE, LEVIOSO_SIDE, STUN, - TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, + TROLL_ATTACK, TROLL_RUSH_HIT, TROLL_NOMAL_SMOKE, BLINK, RANROK_FIREBALL, RANROK_BREATH, RANROK_POINT, RANROK_PURSE, END }; diff --git a/Jusin154_Team3D/Editor/Public/EffectObject.h b/Jusin154_Team3D/Editor/Public/EffectObject.h index 56e92ac57..5af11f695 100644 --- a/Jusin154_Team3D/Editor/Public/EffectObject.h +++ b/Jusin154_Team3D/Editor/Public/EffectObject.h @@ -307,7 +307,7 @@ class CEffectObject abstract : public CPartObject _string m_strModelName = {}; _string m_strEmissiveName = {}; _string m_strDistortionName = {}; - _string m_strNomalMapName = {}; + _string m_strNormalMapName = {}; _string m_strPath = {}; _string m_strName = {}; diff --git a/Jusin154_Team3D/Editor/Public/Ranrok_Pulse.h b/Jusin154_Team3D/Editor/Public/Ranrok_Pulse.h new file mode 100644 index 000000000..97659df47 --- /dev/null +++ b/Jusin154_Team3D/Editor/Public/Ranrok_Pulse.h @@ -0,0 +1,55 @@ +#pragma once + +#include "Editor_Define.h" +#include "Effect_Container.h" + +NS_BEGIN(Engine) +NS_END + +NS_BEGIN(Editor) + +class CRanrok_Pulse final : public CEffect_Container +{ +private: + CRanrok_Pulse(ID3D11Device* pDevice, ID3D11DeviceContext* pContext); + CRanrok_Pulse(const CRanrok_Pulse& rhs); + virtual ~CRanrok_Pulse() = 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 = {}; + + + _float3 m_vLook = {}; + _float m_fLinearSpeed = 0.8f; + + _float4 m_vStartPos = { 0.f, 0.f, 0.f, 1.f }; + _float4 m_vTargetPos = { 0.f, 0.f, 10.f, 1.f }; +private: + class CInfoInstance* m_pInfoInstance = { nullptr }; +public: + static CRanrok_Pulse* 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/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl index 48568ebd5..d9811a801 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Particle_Compute.hlsl @@ -178,20 +178,19 @@ void CS_MAIN( if (isRoundLengthLerp == true) { - if(particle.vLifeTime.x < particle.vLifeTime.y) + if (particleValue.vDelay.x < particleValue.vDelay.y) { float3 vRoundRange = float3( particleValue.fRoundRangeLength * cos(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle), particleValue.fRoundRangeLength * sin(particleValue.fAzimuthAngle) * sin(particleValue.fPolarAngle), - particleValue.fRoundRangeLength * cos(particleValue.fPolarAngle) - ); + particleValue.fRoundRangeLength * cos(particleValue.fPolarAngle)); particleValue.vOriginTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta; particle.vTranslation.xyz += particleValue.fRoundLengthLerpSpeed * vRoundRange * fTimeDelta; + } } - particleValue.vDelay.x += fTimeDelta; if (particleValue.vDelay.x < particleValue.vDelay.y) diff --git a/Jusin154_Team3D/Engine/Private/ComputeShader.cpp b/Jusin154_Team3D/Engine/Private/ComputeShader.cpp index 9c5ea8a5c..0b0e9bfee 100644 --- a/Jusin154_Team3D/Engine/Private/ComputeShader.cpp +++ b/Jusin154_Team3D/Engine/Private/ComputeShader.cpp @@ -51,6 +51,7 @@ HRESULT CComputeShader::Initialize_Prototype(const _tchar* pShaderFilePath, cons #else HLSLFlags = D3DCOMPILE_OPTIMIZATION_LEVEL1; #endif // _DEBUG + ID3DBlob* pErrorBlob = nullptr; HRESULT hr = D3DCompileFromFile(pShaderFilePath, nullptr, @@ -60,7 +61,18 @@ HRESULT CComputeShader::Initialize_Prototype(const _tchar* pShaderFilePath, cons HLSLFlags, 0, &m_pCSBlob, - nullptr); + &pErrorBlob); + + if (FAILED(hr)) + { +#ifdef _DEBUG + + if (pErrorBlob) + OutputDebugStringA((char*)pErrorBlob->GetBufferPointer()); +#endif // DEBUG + + return E_FAIL; + } return S_OK; diff --git a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp index 515139589..f6eeef24c 100644 --- a/Jusin154_Team3D/Engine/Private/Instance_Model.cpp +++ b/Jusin154_Team3D/Engine/Private/Instance_Model.cpp @@ -582,19 +582,16 @@ void CInstance_Model::Compute_CS(_float fTimeDelta) pDesc->isLocal_Located_Not_TakeDelay = m_InstanceDesc.isLocal_Located_Not_TakeDelay; pDesc->isCompute_LocalInverse = m_InstanceDesc.isCompute_LocalInverse; pDesc->isRoundLengthLerp = m_InstanceDesc.isRoundLengthLerp; - - - - pDesc->WorldMatrix = *m_pOwner->Get_Component()->Get_WorldMatrixPtr(); + pDesc->fSizeLerpOption = m_InstanceDesc.fSizeLerpOption; pDesc->fMoveLerpOption = m_InstanceDesc.fMoveLerpOption; - pDesc->ViewMatrix = *m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW); - pDesc->ProjMatrix = *m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ); pDesc->fFar = *m_pGameInstance->Get_CurrentCameraFar(); pDesc->vScreenSize = m_pGameInstance->Get_ViewPortSize(); - + memcpy(&pDesc->WorldMatrix, m_pOwner->Get_Component()->Get_WorldMatrixPtr(), sizeof(_float4x4)); + memcpy(&pDesc->ViewMatrix, m_pGameInstance->Get_Transform_Float4x4(D3DTS::VIEW), sizeof(_float4x4)); + memcpy(&pDesc->ProjMatrix, m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ), sizeof(_float4x4)); m_pContext->Unmap(m_pConstantBuffer, 0); } @@ -999,6 +996,7 @@ void CInstance_Model::Describe_Entity() Instane_Buffer_ReStruct(); } + if (ImGui::DragFloat("fRoundLengthLerpSpeed", reinterpret_cast<_float*>(&m_InstanceDesc.fRoundLengthLerpSpeed))) { Instane_Buffer_ReStruct(); diff --git a/Jusin154_Team3D/Engine/Private/Renderer.cpp b/Jusin154_Team3D/Engine/Private/Renderer.cpp index fd84aed39..f72099679 100644 --- a/Jusin154_Team3D/Engine/Private/Renderer.cpp +++ b/Jusin154_Team3D/Engine/Private/Renderer.cpp @@ -307,6 +307,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; }