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 f412c79fe..a973309be 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/BombardaSide/Bombard_Trail.trail differ 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 78363b13a..91892cc7f 100644 Binary files a/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail and b/Jusin154_Team3D/Editor/Bin/Resources/Data/Effect/DecendoSide/Trail_R.trail differ 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] = {};