This commit is contained in:
GiJungSUk
2025-11-30 16:24:30 +09:00
parent 14202a7351
commit 84a763470c
10 changed files with 55 additions and 1079 deletions
@@ -255,10 +255,6 @@ float4 DrawEffect(PS_IN In)
float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime; float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime;
float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay; float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
if (vDelay.y > FLT_EPSILON5)
{
}
if (vDelay.x <= vDelay.y) if (vDelay.x <= vDelay.y)
{ {
@@ -705,11 +701,6 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay; float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
if (vDelay.x < vDelay.y)
{
discard;
}
vMtrlDiffuse = DrawEffect(In); vMtrlDiffuse = DrawEffect(In);
@@ -749,7 +740,7 @@ PS_BLOOM_OUT PS_BLEND(PS_IN In)
//int2 iTexel = int2(In.vPosition.xy); //int2 iTexel = int2(In.vPosition.xy);
//float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTexel, 0)).r; //float fDepthStencilValue = g_DepthStencilTexture.Load(int3(iTex el, 0)).r;
//float fbias = 0.000005f; //float fbias = 0.000005f;
@@ -47,7 +47,6 @@ void CEditEffect::Update(_float fTimeDelta)
return; return;
} }
void CEditEffect::Late_Update(_float fTimeDelta) void CEditEffect::Late_Update(_float fTimeDelta)
@@ -62,6 +61,7 @@ void CEditEffect::Late_Update(_float fTimeDelta)
m_pInstance_ModelCom->Drop(fTimeDelta); m_pInstance_ModelCom->Drop(fTimeDelta);
if (m_EffectInfo.isBillboard) if (m_EffectInfo.isBillboard)
m_pGameInstance->BillBoard(m_pTransformCom); m_pGameInstance->BillBoard(m_pTransformCom);
+2 -2
View File
@@ -49,7 +49,7 @@ HRESULT CLevioso::Initialize(void* pArg)
m_wstrEffectName = L"Levioso"; m_wstrEffectName = L"Levioso";
m_fDuration = 1.5f; m_fDuration = 3.5f;
return S_OK; return S_OK;
} }
@@ -100,7 +100,7 @@ void CLevioso::Late_Update(_float fTimeDelta)
_matrix WandWorld = pPlayer->Get_WandPos(); _matrix WandWorld = pPlayer->Get_WandPos();
m_pLeviosoTrail->Get_Component<CTrail>()->Fixed_Trail(WandWorld); //m_pLeviosoTrail->Get_Component<CTrail>()->Fixed_Trail(WandWorld);
m_pLeviosoTrail->Trail_Update(m_pTrail_PT_0->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta); m_pLeviosoTrail->Trail_Update(m_pTrail_PT_0->Get_Component<CTransform>()->Get_XMWorldMatrix(), fTimeDelta);
+7 -7
View File
@@ -537,13 +537,13 @@ void CRenderer::Render_Bloom()
} }
//if (true == m_bPostProcessing_BLOOM) { //if (true == m_bPostProcessing_BLOOM) {
// //{ // BackBuffer // { // BackBuffer
// // ID3D11Texture2D* pBackBuffer = nullptr; // ID3D11Texture2D* pBackBuffer = nullptr;
// // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer); // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
// // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer); // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
// // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer); // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
// // SAFE_RELEASE(pBackBuffer); // SAFE_RELEASE(pBackBuffer);
// // //
//} //}
+38 -11
View File
@@ -84,9 +84,9 @@ HRESULT CTrail::Initialize(void* pArg)
iStartIndex + 3 iStartIndex + 3
}; };
pIndices[iIndex++] = Indicies[0];
pIndices[iIndex++] = Indicies[1]; pIndices[iIndex++] = Indicies[1];
pIndices[iIndex++] = Indicies[2]; pIndices[iIndex++] = Indicies[2];
pIndices[iIndex++] = Indicies[0];
pIndices[iIndex++] = Indicies[1]; pIndices[iIndex++] = Indicies[1];
pIndices[iIndex++] = Indicies[3]; pIndices[iIndex++] = Indicies[3];
@@ -109,8 +109,16 @@ HRESULT CTrail::Initialize(void* pArg)
void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix) void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
{ {
_vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMatrix);
_vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMatrix); _matrix WorldMat = {};
WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
WorldMat.r[3] = WorldMatrix.r[3];
_vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), WorldMat);
_vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), WorldMat);
//한칸씩 밀기 //한칸씩 밀기
@@ -151,16 +159,19 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
if (m_isFixedTrail == true) if (m_isFixedTrail == true)
{ {
//만약 고정된 트레일을 켰다면 가장 첫번째 부분을 항상 내 위치로 고정함 //만약 고정된 트레일을 켰다면 가장 마지막 부분을 항상 내 위치로 고정함
_vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
_vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow);
XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh);
_vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
_vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
XMStoreFloat3(&m_pVertices[m_iNumCount - 2].vPosition, vLow);
XMStoreFloat3(&m_pVertices[m_iNumCount -1].vPosition, vHigh);
} }
Describe_Entity();
//XMStoreFloat3(&m_pVertices[0].vPosition, vLow); //XMStoreFloat3(&m_pVertices[0].vPosition, vLow);
//XMStoreFloat3(&m_pVertices[1].vPosition, vHigh); //XMStoreFloat3(&m_pVertices[1].vPosition, vHigh);
@@ -175,6 +186,8 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
m_pVertices[i].vTexcoord = _float2(u, 0); // Low m_pVertices[i].vTexcoord = _float2(u, 0); // Low
m_pVertices[i + 1].vTexcoord = _float2(u, 1); // High m_pVertices[i + 1].vTexcoord = _float2(u, 1); // High
} }
@@ -185,6 +198,8 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
memcpy(VBResource.pData, m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices); memcpy(VBResource.pData, m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
VTXPOSTEX* pDebug = static_cast<VTXPOSTEX*>(VBResource.pData);
m_pContext->Unmap(m_pVB, 0); m_pContext->Unmap(m_pVB, 0);
} }
@@ -225,8 +240,15 @@ HRESULT CTrail::Load_Trail(HANDLE hFile)
void CTrail::Fixed_Trail(_fmatrix WorldMatrix) void CTrail::Fixed_Trail(_fmatrix WorldMatrix)
{ {
_matrix WorldMat = {};
WorldMat.r[0] = XMVector3Normalize(WorldMatrix.r[0]);
WorldMat.r[1] = XMVector3Normalize(WorldMatrix.r[1]);
WorldMat.r[2] = XMVector3Normalize(WorldMatrix.r[2]);
WorldMat.r[3] = WorldMatrix.r[3];
m_isFixedTrail = true; m_isFixedTrail = true;
m_FixedMat = WorldMatrix; m_FixedMat = WorldMat;
} }
@@ -278,8 +300,13 @@ void CTrail::Free()
void CTrail::Describe_Entity() void CTrail::Describe_Entity()
{ {
GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow); GUI::Begin("TRAIL");
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
GUI::InputFloat3("FIRST", (_float*)&m_pVertices[0]);
GUI::InputFloat3("SECOND", (_float*)&m_pVertices[1]);
GUI::End();
} }
+1 -1
View File
@@ -5,7 +5,7 @@ NS_BEGIN(Engine)
enum class STATE { RIGHT, UP, LOOK, POSITION, END }; enum class STATE { RIGHT, UP, LOOK, POSITION, END };
enum class LIGHT { DIRECTIONAL, POINT, SPOT, END }; enum class LIGHT { DIRECTIONAL, POINT, SPOT, END };
enum class COLLIDER { AABB, OBB, SPHERE, END }; enum class COLLIDER { AABB, OBB, SPHERE, END };
enum class RENDER { OCCLUSION, PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, UI, END }; enum class RENDER {PRIORITY, SHADOW, NONBLEND, DECAL, BLUR, NONLIGHT, EFFECT ,BLEND, BLOOM, UI, OCCLUSION, END };
enum class RAY { LOCAL, WORLD, END }; enum class RAY { LOCAL, WORLD, END };
enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END }; enum class ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
+3
View File
@@ -49,6 +49,9 @@ class ENGINE_DLL CTrail final :
_vector m_PreHigh[2] = {}; _vector m_PreHigh[2] = {};
_vector m_PreLow[2] = {}; _vector m_PreLow[2] = {};
_vector m_PreFixedHigh[3] = {};
_vector m_PreFixedLow[3] = {};
VTXPOSTEX* m_pVertices = { nullptr }; VTXPOSTEX* m_pVertices = { nullptr };
_float m_fAccTime = {}; _float m_fAccTime = {};
File diff suppressed because it is too large Load Diff