From be78f757d0b78fced19b789d16f5d188f4fe22af Mon Sep 17 00:00:00 2001 From: GiJungSUk Date: Thu, 4 Dec 2025 13:31:57 +0900 Subject: [PATCH] commit --- .../Effect/BombardaSide/Bombard_Trail.trail | Bin 345 -> 438 bytes .../Data/Effect/Decendo/Decendo_Circle_S.bin | 2 +- .../Data/Effect/Decendo/Decendo_Wand_Light.bin | 2 +- .../Data/Effect/DecendoSide/Trail_R.trail | Bin 331 -> 424 bytes .../Data/Effect/Levioso/Levioso_Wand_Light.bin | 3 +++ .../Resources/Data/Effect/Package/Levioso.bin | 4 ++-- .../Resources/ShaderFiles/Shader_Deferred.hlsl | 4 ++-- .../ShaderFiles/Shader_VtxModelInstance.hlsl | 2 +- Jusin154_Team3D/Editor/Private/BombardSide.cpp | 2 +- Jusin154_Team3D/Editor/Private/EditEffect.cpp | 3 ++- Jusin154_Team3D/Editor/Private/Levioso.cpp | 13 +++++++++++++ Jusin154_Team3D/Editor/Private/TrailObject.cpp | 2 +- .../Resources/ShaderFiles/Shader_Deferred.hlsl | 4 ++-- Jusin154_Team3D/Engine/Private/Trail.cpp | 15 +++++++++++---- Jusin154_Team3D/Engine/Public/Trail.h | 5 ++--- 15 files changed, 42 insertions(+), 19 deletions(-) create mode 100644 Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail index f412c79fe4aa8ce766e2492e87ba803a442626af..a973309bedbcd6236493c6d27e94570f97b46f8f 100644 GIT binary patch delta 173 zcmcb~w2hfjVPc^?S6+T*ajI#&3xmeQLdl6ri-j4_o;}OJ&|rT-)zI#l_hLIBd*TgQ z=J)UPCjQVY;kv%qmH`YJ>_L<*m$*G614IXi&&a@V_WI%idnOPE27nxPAe$A&CyhP} E00E93r2qf` delta 108 zcmdnSe3OZj0SYuGGD=Q#UM$RT_Uu^(h6ejb32k=!?;p3zJ5)3Arz|tSVBlm)MokNl ll*hwE4(r@I9Y8v(Me^(!fqFpVAU-1l1Dp-wgFpii0|2kY8tMQ5 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin index 7cd5f49e9..5870fe8e6 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Circle_S.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7a4bf86427df3ec13dc4bcb71f00c3ce4f0898187c7b813340a6b8257f7b624c +oid sha256:89a1a4370aa456bf9aac89cdcc574476416552b8435e0fce7d95f57dd3b76534 size 897 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin index e11e7ef35..2e1154439 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Decendo/Decendo_Wand_Light.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:e1961e10bf9395bbbbc5d3bce84d09b070749fdccdd6cd73334ea62418a45a07 +oid sha256:df644319a74c442c891041eefeb5e8a8a957bb44668416cf7498988ea9b30db9 size 987 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail index 78363b13a23524fab9621ec317ca4f9639002aa7..91892cc7f23a69597968a80031a02d2b9e20c329 100644 GIT binary patch delta 94 zcmX@jw1SyYVWO2hM_ztrajI#&%S84EEK#9X?IymCabRF%U|?rpU|y4!2A~80dUOXm diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin new file mode 100644 index 000000000..0a3c60810 --- /dev/null +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Levioso/Levioso_Wand_Light.bin @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:950176215bdac99585a8c8ac27513896f917f39d0cce8b1c4910dc611e2a1f51 +size 1022 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin index 517803a84..24957383b 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin +++ b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/Package/Levioso.bin @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4c16921bcfa5621c02d9762a53857a4436d9ea28704102476e46045763478be9 -size 644 +oid sha256:e7392a101f23639921ab9f6c35f1dfdd767d491f94df486b9f07af294447e880 +size 712 diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index b59cd1543..13ce43e96 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -631,7 +631,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x; vTexcoord.y = In.vTexcoord.y; - vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(BorderZeroSampler, vTexcoord); + vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } Out.vBlurX = vColor; @@ -818,7 +818,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In) vTexcoord.x = In.vTexcoord.x; vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; - vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(BorderZeroSampler, vTexcoord); + vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } Out.vBlurX = vColor; diff --git a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl index c8efd9d04..094a0fcab 100644 --- a/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl +++ b/Jusin154_Team3D/Editor/Bin/Resources/ShaderFiles/Shader_VtxModelInstance.hlsl @@ -510,7 +510,7 @@ float4 DrawEffect(PS_IN In) // discard; - fTimeRatio = 1 - pow(1 - fTimeRatio, 3); + //fTimeRatio = 1 - pow(1 - fTimeRatio, 3); float fFade = smoothstep(fTimeRatio - 0.1f, fTimeRatio + 0.1f, vMtrlDissolve.r); diff --git a/Jusin154_Team3D/Editor/Private/BombardSide.cpp b/Jusin154_Team3D/Editor/Private/BombardSide.cpp index 6261f5e74..afe358fa0 100644 --- a/Jusin154_Team3D/Editor/Private/BombardSide.cpp +++ b/Jusin154_Team3D/Editor/Private/BombardSide.cpp @@ -48,7 +48,7 @@ HRESULT CBombardSide::Initialize(void* pArg) SAFE_ADDREF(m_pWandTrail); SAFE_ADDREF(m_pWandParticle); - m_fDuration = 2.f; + m_fDuration = 2.5f; m_Events.emplace(0.6f, [&](){ m_isParticleEnd = true; diff --git a/Jusin154_Team3D/Editor/Private/EditEffect.cpp b/Jusin154_Team3D/Editor/Private/EditEffect.cpp index 396ddff81..02fa57e65 100644 --- a/Jusin154_Team3D/Editor/Private/EditEffect.cpp +++ b/Jusin154_Team3D/Editor/Private/EditEffect.cpp @@ -417,8 +417,9 @@ void CEditEffect::Describe_Entity() { //여기서 모델, 텍스쳐, 선택할 수 있도록 함 + const char* pLerp[] = { "Linear" , "EaseInQuad", "EaseOutQuad", "EaseInCubic" , "EaseOutCubic" , "EaseInOutSin" , "EaseInBack" , "Expo" , "Circle" }; - const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION"}; + const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" , "PRESHADOW"}; const char* pEffectType[] = { "EFFECT" , "TRAIL" }; const char* pShaderPass[] = { "DEFAULT" , "NON_NOMALMAP" , "BLUR" , "WEIGHTBLEND" , "NON_WORLD" , "NON_WORLD_BLUR", "BLEND", "BLEND_NOWORLD", "BLOOM" ,"BLOOM_NOWORLD" ,"BLUR_NO_EMMISVE", "BLUR_NO_WORLD_NO_EMISSIVE","WEIGHTBLEND_FOR_BLEND"}; const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY"}; diff --git a/Jusin154_Team3D/Editor/Private/Levioso.cpp b/Jusin154_Team3D/Editor/Private/Levioso.cpp index 2a79e53bd..2f5dd2366 100644 --- a/Jusin154_Team3D/Editor/Private/Levioso.cpp +++ b/Jusin154_Team3D/Editor/Private/Levioso.cpp @@ -126,6 +126,8 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject) _vector WandPos = pPlayer->Get_WandPos().r[3]; CEditEffect* pWandSmoke = Get_PartObject("Levioso_Wand0"); + CEditEffect* pWandLight= Get_PartObject("Levioso_Wand_Light"); + m_pLeviosoPJ_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); m_pTrail_PT_0->Get_Component()->Set_WorldMatrix(m_pOwner->Get_Component()->Get_XMWorldMatrix()); @@ -134,10 +136,12 @@ HRESULT CLevioso::Pre_Setting(CGameObject* pObject) m_pLeviosoPJ_0->Get_Component()->Set_State(STATE::POSITION, WandPos); m_pTrail_PT_0->Get_Component()->Set_State(STATE::POSITION, WandPos); pWandSmoke->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); m_pLeviosoPJ_0->Set_Visible(true); m_pTrail_PT_0->Set_Visible(true); pWandSmoke->Set_Visible(true); + pWandLight->Set_Visible(true); m_pLeviosoTrail->Set_Visible(true); m_pLeviosoTrail->Get_Component()->Reset_Trail(); @@ -208,6 +212,15 @@ void CLevioso::OnCollision(CGameObject* pOther, void* pDesc) m_fAccTime = 0.f; m_fDuration = 3.f; //적중하면 지속시간 3초 + CPlayer* pPlayer = static_cast(m_pOwner); + + if (pPlayer == nullptr) + return; + + _vector WandPos = pPlayer->Get_WandPos().r[3]; + + CEditEffect* pWandLight = Get_PartObject("Levioso_Wand_Light"); + pWandLight->Get_Component()->Set_State(STATE::POSITION, pPlayer->Get_PartObject()->Get_WorldPostion()); //CEditEffect* pLevioso_Hit = Get_PartObject("Levioso_Hit"); //CEditEffect* pLevioso_Bottom_Wind = Get_PartObject("Levioso_Bottom_Wind"); //CEditEffect* pLevioso_Rotate0 = Get_PartObject("Levioso_Rotate0"); diff --git a/Jusin154_Team3D/Editor/Private/TrailObject.cpp b/Jusin154_Team3D/Editor/Private/TrailObject.cpp index 6b7288990..b8be4dcce 100644 --- a/Jusin154_Team3D/Editor/Private/TrailObject.cpp +++ b/Jusin154_Team3D/Editor/Private/TrailObject.cpp @@ -484,7 +484,7 @@ void CTrailObject::Free() void CTrailObject::Describe_Entity() { - const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" }; + const char* pRenderNames[] = { "PRIORITY" , "SHADOW", "NONBLEND", "DECAL", "BLUR" , "NONLIGHT" ,"EFFECT", "BLEND" ,"BLOOM" , "UI", "OCCLUSION" , "PRESHADOW" }; const char* pEffectType[] = { "EFFECT" , "TRAIL" }; const char* pShaderPass[] = { "DEFAULT" , "SCISSOR" , "UI" , "UVMOVE" , "TRAIL" , "TRAIL_BLEND" , "TRAILWB_FOR_BLEND" , "TRAIL_BLUR", "TRAIL_BLOOM" }; const char* pBloomType[] = { "NONE" , "BASIC" , "MUILTY" }; diff --git a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl index b59cd1543..13ce43e96 100644 --- a/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl +++ b/Jusin154_Team3D/Engine/Bin/Resources/ShaderFiles/Shader_Deferred.hlsl @@ -631,7 +631,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_X(PS_IN In) vTexcoord.x = In.vTexcoord.x + (float) i / g_vResolution.x; vTexcoord.y = In.vTexcoord.y; - vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(BorderZeroSampler, vTexcoord); + vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } Out.vBlurX = vColor; @@ -818,7 +818,7 @@ PS_OUT_BLUR_X PS_MAIN_BLUR_Y(PS_IN In) vTexcoord.x = In.vTexcoord.x; vTexcoord.y = In.vTexcoord.y + (float) i / g_vResolution.y; - vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(BorderZeroSampler, vTexcoord); + vColor += g_fWeights_128[i + 63] * g_BlurTexture.Sample(ClampSampler, vTexcoord); } Out.vBlurX = vColor; diff --git a/Jusin154_Team3D/Engine/Private/Trail.cpp b/Jusin154_Team3D/Engine/Private/Trail.cpp index 0563c246c..bcc4e8099 100644 --- a/Jusin154_Team3D/Engine/Private/Trail.cpp +++ b/Jusin154_Team3D/Engine/Private/Trail.cpp @@ -137,8 +137,8 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix) memmove(m_PreLow, m_PreLow + 1, sizeof(VTXPOSTEX)); memmove(m_PreHigh, m_PreHigh + 1, sizeof(VTXPOSTEX)); - m_PreLow[1] = vLow; - m_PreHigh[1] = vHigh; + XMStoreFloat3(&m_PreLow[1], vLow); + XMStoreFloat3(&m_PreHigh[1], vHigh); if (m_iNumCount < 4) { @@ -151,11 +151,15 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix) //시작점 끝점 내점 두개를 이용하여 보간할 것임 + _vector m_PreLowVector[2] = { XMLoadFloat3(&m_PreLow[0]) , XMLoadFloat3(&m_PreLow[1]) }; + _vector m_PreHighVector[2] = { XMLoadFloat3(&m_PreHigh[0]) , XMLoadFloat3(&m_PreHigh[1]) }; + for (size_t i = 0; i < 4; i++) { + _float iRatio = (_float)i / 3; - _vector vLerpLow = XMVectorCatmullRom(XMLoadFloat3(&m_pVertices[m_iNumCount - 2].vPosition), m_PreLow[0], m_PreLow[1], m_PreLow[1] + (m_PreLow[1] - m_PreLow[0]), iRatio); // LoW - _vector vLerpHigh = XMVectorCatmullRom(XMLoadFloat3(&m_pVertices[m_iNumCount - 1].vPosition), m_PreHigh[0], m_PreHigh[1], m_PreHigh[1] + (m_PreHigh[1] - m_PreHigh[0]), iRatio); + _vector vLerpLow = XMVectorCatmullRom(XMLoadFloat3(&m_pVertices[m_iNumCount - 2].vPosition), m_PreLowVector[0], m_PreLowVector[1], m_PreLowVector[1] + (m_PreLowVector[1] - m_PreLowVector[0]), iRatio); // LoW + _vector vLerpHigh = XMVectorCatmullRom(XMLoadFloat3(&m_pVertices[m_iNumCount - 1].vPosition), m_PreHighVector[0], m_PreHighVector[1], m_PreHighVector[1] + (m_PreHighVector[1] - m_PreHighVector[0]), iRatio); XMStoreFloat3(&m_pVertices[m_iNumCount++].vPosition, vLerpLow); XMStoreFloat3(&m_pVertices[m_iNumCount++].vPosition, vLerpHigh); @@ -233,6 +237,9 @@ HRESULT CTrail::ReStructVB(_uint iNumVertices) if (FAILED(Create_VB())) return E_FAIL; + Safe_Delete_Array(m_pVertices); + m_pVertices = new VTXPOSTEX[m_iNumVertices]; + return S_OK; } diff --git a/Jusin154_Team3D/Engine/Public/Trail.h b/Jusin154_Team3D/Engine/Public/Trail.h index 1f50da839..4b1df294c 100644 --- a/Jusin154_Team3D/Engine/Public/Trail.h +++ b/Jusin154_Team3D/Engine/Public/Trail.h @@ -29,7 +29,6 @@ class ENGINE_DLL CTrail final : public: void Fixed_Trail(_fmatrix WorldMatrix); - private: virtual HRESULT Initialize_Prototype() override; virtual HRESULT Initialize(void* pArg) override; @@ -48,8 +47,8 @@ class ENGINE_DLL CTrail final : _uint m_iNumCount = {}; - _vector m_PreHigh[2] = {}; - _vector m_PreLow[2] = {}; + _float3 m_PreHigh[2] = {}; + _float3 m_PreLow[2] = {}; _vector m_PreFixedHigh[3] = {}; _vector m_PreFixedLow[3] = {};