push
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -255,11 +255,7 @@ float4 DrawEffect(PS_IN In)
|
||||
float2 vDistortionUVMoveTime = g_ParticleValue[In.iGPUIndex].vDistortionUVMoveTime;
|
||||
float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
|
||||
|
||||
if (vDelay.y > FLT_EPSILON5)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (vDelay.x <= vDelay.y)
|
||||
{
|
||||
discard;
|
||||
@@ -704,12 +700,7 @@ PS_BLOOM_OUT PS_BLOOM(PS_IN In)
|
||||
vector vMtrlDiffuse;
|
||||
|
||||
float2 vDelay = g_ParticleValue[In.iGPUIndex].vDelay;
|
||||
|
||||
if (vDelay.x < vDelay.y)
|
||||
{
|
||||
discard;
|
||||
}
|
||||
|
||||
|
||||
|
||||
vMtrlDiffuse = DrawEffect(In);
|
||||
|
||||
@@ -749,7 +740,7 @@ PS_BLOOM_OUT PS_BLEND(PS_IN In)
|
||||
|
||||
//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;
|
||||
|
||||
|
||||
@@ -47,7 +47,6 @@ void CEditEffect::Update(_float fTimeDelta)
|
||||
return;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
void CEditEffect::Late_Update(_float fTimeDelta)
|
||||
@@ -62,6 +61,7 @@ void CEditEffect::Late_Update(_float fTimeDelta)
|
||||
|
||||
m_pInstance_ModelCom->Drop(fTimeDelta);
|
||||
|
||||
|
||||
if (m_EffectInfo.isBillboard)
|
||||
m_pGameInstance->BillBoard(m_pTransformCom);
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ HRESULT CLevioso::Initialize(void* pArg)
|
||||
|
||||
m_wstrEffectName = L"Levioso";
|
||||
|
||||
m_fDuration = 1.5f;
|
||||
m_fDuration = 3.5f;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
@@ -100,7 +100,7 @@ void CLevioso::Late_Update(_float fTimeDelta)
|
||||
|
||||
_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);
|
||||
|
||||
|
||||
@@ -537,13 +537,13 @@ void CRenderer::Render_Bloom()
|
||||
}
|
||||
|
||||
//if (true == m_bPostProcessing_BLOOM) {
|
||||
// //{ // BackBuffer
|
||||
// // ID3D11Texture2D* pBackBuffer = nullptr;
|
||||
// // m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
|
||||
// // //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
|
||||
// // m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
|
||||
// // SAFE_RELEASE(pBackBuffer);
|
||||
// //
|
||||
// { // BackBuffer
|
||||
// ID3D11Texture2D* pBackBuffer = nullptr;
|
||||
// m_pGameInstance->Get_BackBufferPTR(&pBackBuffer);
|
||||
// //m_pGameInstance->Copy_RenderTarget(TEXT("Target_Diffuse"), pBackBuffer);
|
||||
// m_pGameInstance->Paste_RenderTarget(TEXT("Target_Bloom_Input"), pBackBuffer);
|
||||
// SAFE_RELEASE(pBackBuffer);
|
||||
//
|
||||
//}
|
||||
|
||||
|
||||
|
||||
@@ -84,9 +84,9 @@ HRESULT CTrail::Initialize(void* pArg)
|
||||
iStartIndex + 3
|
||||
};
|
||||
|
||||
pIndices[iIndex++] = Indicies[0];
|
||||
pIndices[iIndex++] = Indicies[1];
|
||||
pIndices[iIndex++] = Indicies[2];
|
||||
pIndices[iIndex++] = Indicies[0];
|
||||
|
||||
pIndices[iIndex++] = Indicies[1];
|
||||
pIndices[iIndex++] = Indicies[3];
|
||||
@@ -109,8 +109,16 @@ HRESULT CTrail::Initialize(void* pArg)
|
||||
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)
|
||||
{
|
||||
//만약 고정된 트레일을 켰다면 가장 첫번째 부분을 항상 내 위치로 고정함
|
||||
//만약 고정된 트레일을 켰다면 가장 마지막 부분을 항상 내 위치로 고정함
|
||||
_vector vFixedLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
|
||||
_vector vFixedHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
|
||||
|
||||
_vector vLow = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vLow), m_FixedMat);
|
||||
_vector vHigh = XMVector3TransformCoord(XMLoadFloat3(&m_TrailDesc.vHigh), m_FixedMat);
|
||||
XMStoreFloat3(&m_pVertices[0].vPosition, vFixedLow);
|
||||
XMStoreFloat3(&m_pVertices[1].vPosition, vFixedHigh);
|
||||
|
||||
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[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 + 1].vTexcoord = _float2(u, 1); // High
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -184,6 +197,8 @@ void CTrail::Trail_Update(_float fDeltaTime, _fmatrix WorldMatrix)
|
||||
{
|
||||
|
||||
memcpy(VBResource.pData, m_pVertices, sizeof(VTXPOSTEX) * m_iNumVertices);
|
||||
|
||||
VTXPOSTEX* pDebug = static_cast<VTXPOSTEX*>(VBResource.pData);
|
||||
|
||||
m_pContext->Unmap(m_pVB, 0);
|
||||
}
|
||||
@@ -225,8 +240,15 @@ HRESULT CTrail::Load_Trail(HANDLE hFile)
|
||||
|
||||
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_FixedMat = WorldMatrix;
|
||||
m_FixedMat = WorldMat;
|
||||
}
|
||||
|
||||
|
||||
@@ -278,8 +300,13 @@ void CTrail::Free()
|
||||
void CTrail::Describe_Entity()
|
||||
{
|
||||
|
||||
GUI::InputFloat3("Low", (_float*)&m_TrailDesc.vLow);
|
||||
GUI::InputFloat3("High", (_float*)&m_TrailDesc.vHigh);
|
||||
GUI::Begin("TRAIL");
|
||||
|
||||
|
||||
GUI::InputFloat3("FIRST", (_float*)&m_pVertices[0]);
|
||||
GUI::InputFloat3("SECOND", (_float*)&m_pVertices[1]);
|
||||
|
||||
GUI::End();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ NS_BEGIN(Engine)
|
||||
enum class STATE { RIGHT, UP, LOOK, POSITION, END };
|
||||
enum class LIGHT { DIRECTIONAL, POINT, SPOT, 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 ACTOR { BOX, CAPSULE, SPHERE, PLANE, TRIANGLEMESH, HEIGHTFIELD, END };
|
||||
|
||||
|
||||
@@ -49,6 +49,9 @@ class ENGINE_DLL CTrail final :
|
||||
_vector m_PreHigh[2] = {};
|
||||
_vector m_PreLow[2] = {};
|
||||
|
||||
_vector m_PreFixedHigh[3] = {};
|
||||
_vector m_PreFixedLow[3] = {};
|
||||
|
||||
VTXPOSTEX* m_pVertices = { nullptr };
|
||||
|
||||
_float m_fAccTime = {};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user