@@ -68,10 +68,11 @@ HRESULT CGoblin_Mage::Initialize(void* pArg)
|
||||
m_pCharacter_Controller->Set_Position(XMVectorSet(-52.f, 0.f, -4.f, 1.f));
|
||||
m_pTransformCom->Set_State(STATE::POSITION, XMVectorSet(-52.f, 0.f, -4.f, 1.f));
|
||||
|
||||
#ifdef _DEBUG
|
||||
#if 진우
|
||||
m_isDebugMode = true;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -254,13 +254,13 @@ HRESULT CPlayer::Render()
|
||||
if (FAILED(m_pModelCom->Bind_Material(i, m_pShaderCom))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
#ifdef 기무리
|
||||
if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // 기무리
|
||||
#endif // _DEBUG
|
||||
//#ifdef _DEBUG
|
||||
//#ifdef 기무리
|
||||
// if (FAILED(m_pModelCom->Bind_BoneMatrices(i, m_pShaderCom, "g_BoneMatrices"))) {
|
||||
// return E_FAIL;
|
||||
// }
|
||||
//#endif // 기무리
|
||||
//#endif // _DEBUG
|
||||
|
||||
if (FAILED(m_pShaderCom->Bind_Matrices(
|
||||
"g_OffsetMatrix",
|
||||
@@ -289,6 +289,7 @@ HRESULT CPlayer::Render()
|
||||
Render_CameraCoordinateSystem();
|
||||
//m_pCharacter_Controller->Render();
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
if (RENDER::NONLIGHT == eType) {
|
||||
@@ -405,6 +406,7 @@ void CPlayer::Start_CameraShake(_float fTime, _float fIntense)
|
||||
m_bCameraShake = true;
|
||||
}
|
||||
|
||||
|
||||
void CPlayer::Set_RaceRing(CRaceRing* pRaceRing)
|
||||
{
|
||||
if (m_pRaceRing != pRaceRing)
|
||||
@@ -417,46 +419,7 @@ void CPlayer::Set_RaceRing(CRaceRing* pRaceRing)
|
||||
SAFE_ADDREF(m_pRaceRing);
|
||||
}
|
||||
|
||||
void CPlayer::Render_CameraCoordinateSystem()
|
||||
{
|
||||
|
||||
|
||||
GUI::Text("W : %.2f, %.2f, %.2f", m_vCameraLookDir.x, 0.f, m_vCameraLookDir.z);
|
||||
GUI::Text("A : %.2f, %.2f, %.2f", -m_vCameraRightDir.x, 0.f, -m_vCameraRightDir.z);
|
||||
GUI::Text("S : %.2f, %.2f, %.2f", -m_vCameraLookDir.x, 0.f, -m_vCameraLookDir.z);
|
||||
GUI::Text("D : %.2f, %.2f, %.2f", m_vCameraRightDir.x, 0.f, m_vCameraRightDir.z);
|
||||
|
||||
_float fButtonSize = 45.f;
|
||||
GUI::Button("##0", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("W : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##2", { fButtonSize, fButtonSize });
|
||||
GUI::Button(("A : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , -m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##4", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("D : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })))).c_str(), { fButtonSize, fButtonSize });
|
||||
GUI::Button("##6", { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button(("S : " + to_string(XMConvertToDegrees(CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , -m_vCameraLookDir.z })))).c_str(), { fButtonSize, fButtonSize }); GUI::SameLine();
|
||||
GUI::Button("##8", { fButtonSize, fButtonSize });
|
||||
//W CMyTools::Get_Direction2D(vLook, { m_vCameraLookDir.x , m_vCameraLookDir.z })
|
||||
//A CMyTools::Get_Direction2D(vLook, { -m_vCameraRightDir.x , - m_vCameraRightDir.z })
|
||||
//S CMyTools::Get_Direction2D(vLook, { m_vCameraRightDir.x , m_vCameraRightDir.z })
|
||||
//D CMyTools::Get_Direction2D(vLook, { -m_vCameraLookDir.x , - m_vCameraLookDir.z })
|
||||
}
|
||||
GUI::End();
|
||||
m_Batch->DrawLine( // W
|
||||
VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraLookDir), DirectX::Colors::Blue)
|
||||
);
|
||||
m_Batch->DrawLine( // D
|
||||
VertexPositionColor(fArrowLength * -XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * XMLoadFloat3(&m_vCameraRightDir), DirectX::Colors::Red)
|
||||
);
|
||||
m_Batch->DrawLine( // PlayerLook
|
||||
VertexPositionColor(XMVectorZero(), DirectX::Colors::GhostWhite),
|
||||
VertexPositionColor(fArrowLength * xmvLook, DirectX::Colors::HotPink)
|
||||
);
|
||||
m_Batch->End();
|
||||
}
|
||||
}
|
||||
HRESULT CPlayer::Ready_Components()
|
||||
{
|
||||
CTransform::TRANSFORM_DESC Desc = {};
|
||||
|
||||
@@ -70,54 +70,70 @@ float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndex
|
||||
float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV);
|
||||
return vOriginalUV * vDelta + vOffset;
|
||||
}
|
||||
|
||||
float2 UV_Cutting(float2 originalUV, float2 uvCuttingCountFloat, int currentFrameIndex)
|
||||
float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame)
|
||||
{
|
||||
// (1) 칸 개수는 정수로 취급 (0 방지)
|
||||
int uvCuttingCountX = max((int) uvCuttingCountFloat.x, 1);
|
||||
int uvCuttingCountY = max((int) uvCuttingCountFloat.y, 1);
|
||||
|
||||
int totalFrameCount = uvCuttingCountX * uvCuttingCountY;
|
||||
|
||||
// (2) currentFrameIndex를 [0, totalFrameCount)로 래핑 (정수 % 제거)
|
||||
int wrappedFrameIndex = currentFrameIndex;
|
||||
if (totalFrameCount > 0)
|
||||
{
|
||||
float inverseTotalFrameCount = 1.0f / (float) totalFrameCount;
|
||||
|
||||
// loopCount = floor(currentFrameIndex / totalFrameCount)
|
||||
int loopCount = (int) floor((float) currentFrameIndex * inverseTotalFrameCount);
|
||||
|
||||
wrappedFrameIndex = currentFrameIndex - loopCount * totalFrameCount;
|
||||
|
||||
// 음수 프레임까지 방어(선택)
|
||||
if (wrappedFrameIndex < 0)
|
||||
{
|
||||
wrappedFrameIndex += totalFrameCount;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wrappedFrameIndex = 0;
|
||||
}
|
||||
|
||||
// (3) 가로 기준으로 행/열 구하기 (정수 /, % 제거)
|
||||
float inverseCuttingCountX = 1.0f / (float) uvCuttingCountX;
|
||||
float inverseCuttingCountY = 1.0f / (float) uvCuttingCountY;
|
||||
|
||||
// frameIndexY = floor(wrappedFrameIndex / uvCuttingCountX)
|
||||
int frameIndexY = (int) floor((float) wrappedFrameIndex * inverseCuttingCountX);
|
||||
|
||||
// frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX (% 대체)
|
||||
int frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX;
|
||||
|
||||
// (4) UV 변환
|
||||
float2 resultUV = originalUV;
|
||||
resultUV.x = resultUV.x * inverseCuttingCountX + (float) frameIndexX * inverseCuttingCountX;
|
||||
resultUV.y = resultUV.y * inverseCuttingCountY + (float) frameIndexY * inverseCuttingCountY;
|
||||
|
||||
return resultUV;
|
||||
float2 UV = vUV; // 이미지의 UV값
|
||||
|
||||
int iTotalFrame = vUVCutting.x * vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지)
|
||||
|
||||
int iFrameX = iCurrentFrame % (int) vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지)
|
||||
int iFrameY = iCurrentFrame / (int) vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지)
|
||||
|
||||
float fFreamWidth = 1.0 / vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다.
|
||||
float fFreamHeight = 1.0 / vUVCutting.y; // 1.0 나누기 이미지 갯수를 해서 한줄에 얼마나 갈지 정해준다.
|
||||
|
||||
UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; // 먼저 uv를 0~1이 아닌 0~fFrameWidth로 만든 다음에 한칸씩 옆으로 밀어준다.
|
||||
UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; // 먼저 uv를 0~1이 아닌 0~fFrameHeight로 만든 다음에 한줄씩 밑으로 내려준다.
|
||||
|
||||
return UV;
|
||||
}
|
||||
//float2 UV_Cutting(float2 originalUV, float2 uvCuttingCountFloat, int currentFrameIndex)
|
||||
//{
|
||||
// // (1) 칸 개수는 정수로 취급 (0 방지)
|
||||
// int uvCuttingCountX = max((int) uvCuttingCountFloat.x, 1);
|
||||
// int uvCuttingCountY = max((int) uvCuttingCountFloat.y, 1);
|
||||
|
||||
// int totalFrameCount = uvCuttingCountX * uvCuttingCountY;
|
||||
|
||||
// // (2) currentFrameIndex를 [0, totalFrameCount)로 래핑 (정수 % 제거)
|
||||
// int wrappedFrameIndex = currentFrameIndex;
|
||||
// if (totalFrameCount > 0)
|
||||
// {
|
||||
// float inverseTotalFrameCount = 1.0f / (float) totalFrameCount;
|
||||
|
||||
// // loopCount = floor(currentFrameIndex / totalFrameCount)
|
||||
// int loopCount = (int) floor((float) currentFrameIndex * inverseTotalFrameCount);
|
||||
|
||||
// wrappedFrameIndex = currentFrameIndex - loopCount * totalFrameCount;
|
||||
|
||||
// // 음수 프레임까지 방어(선택)
|
||||
// if (wrappedFrameIndex < 0)
|
||||
// {
|
||||
// wrappedFrameIndex += totalFrameCount;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// wrappedFrameIndex = 0;
|
||||
// }
|
||||
|
||||
// // (3) 가로 기준으로 행/열 구하기 (정수 /, % 제거)
|
||||
// float inverseCuttingCountX = 1.0f / (float) uvCuttingCountX;
|
||||
// float inverseCuttingCountY = 1.0f / (float) uvCuttingCountY;
|
||||
|
||||
// // frameIndexY = floor(wrappedFrameIndex / uvCuttingCountX)
|
||||
// int frameIndexY = (int) floor((float) wrappedFrameIndex * inverseCuttingCountX);
|
||||
|
||||
// // frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX (% 대체)
|
||||
// int frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX;
|
||||
|
||||
// // (4) UV 변환
|
||||
// float2 resultUV = originalUV;
|
||||
// resultUV.x = resultUV.x * inverseCuttingCountX + (float) frameIndexX * inverseCuttingCountX;
|
||||
// resultUV.y = resultUV.y * inverseCuttingCountY + (float) frameIndexY * inverseCuttingCountY;
|
||||
|
||||
// return resultUV;
|
||||
//}
|
||||
|
||||
|
||||
// (Kd F(Lambert)) + (Ks F(cook-torrance))
|
||||
|
||||
@@ -1478,7 +1478,7 @@ technique11 DefaultTechnique
|
||||
SetRasterizerState(RS_Default);
|
||||
SetDepthStencilState(DSS_Default, 0);
|
||||
SetBlendState(BS_None, float4(0.f, 0.f, 0.f, 0.f), 0xffffffff);
|
||||
VertexShader = compile vs_5_0 VS_MAIN_LEGACY();
|
||||
VertexShader = compile vs_5_0 VS_MAIN();
|
||||
GeometryShader = NULL;
|
||||
PixelShader = compile ps_5_0 PS_Player_Suit_DSRON_ToSRO();
|
||||
}
|
||||
|
||||
@@ -761,6 +761,8 @@ float4 DrawEffect(PS_IN In)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
if (g_fDissolveCutRatio <= fTimeRatio) // 일정 수준 이상 넘어가지 못하도록 막기
|
||||
{
|
||||
fTimeRatio = g_fDissolveCutRatio;
|
||||
@@ -772,7 +774,7 @@ float4 DrawEffect(PS_IN In)
|
||||
|
||||
if (g_isNoDissolveSmoothStep == true)
|
||||
{
|
||||
fFade = fTimeRatio;
|
||||
fFade = smoothstep(fTimeRatio, fTimeRatio, vMtrlDissolve.r);
|
||||
}
|
||||
|
||||
vMtrlDiffuse.a *= fFade;
|
||||
@@ -864,6 +866,9 @@ PS_OUT BlendedWeight(float4 fDiffuse, float fLinearZ)
|
||||
|
||||
//float fWeight = pow(fLinearZ, -2.5);
|
||||
|
||||
// float fWeight = clamp(pow(fLinearZ, -2.5f), 1.0f, 1000.0f);
|
||||
|
||||
|
||||
float linearZPositive = max(fLinearZ, 1e-6f);
|
||||
float fWeight = clamp(pow(linearZPositive, -2.5f), 1.0f, 1000.0f);
|
||||
|
||||
|
||||
@@ -51,7 +51,9 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
|
||||
|
||||
vector vMixedDiffuse = g_MixedDiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
||||
float fRevealage = g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r;
|
||||
float fRevealage = clamp(g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r, 0.f ,1.f);
|
||||
|
||||
|
||||
|
||||
|
||||
Out.vBackBuffer = vector(vMixedDiffuse.rgb / fRevealage , fRevealage);
|
||||
|
||||
@@ -70,54 +70,70 @@ float2 Get_MovedUV(float2 vOriginalUV, float fDeltaU, float fDeltaV, uint iIndex
|
||||
float2 vOffset = float2(iIndexU * fDeltaU, iIndexV * fDeltaV);
|
||||
return vOriginalUV * vDelta + vOffset;
|
||||
}
|
||||
|
||||
float2 UV_Cutting(float2 originalUV, float2 uvCuttingCountFloat, int currentFrameIndex)
|
||||
float2 UV_Cutting(float2 vUV, float2 vUVCutting, int iCurrentFrame)
|
||||
{
|
||||
// (1) 칸 개수는 정수로 취급 (0 방지)
|
||||
int uvCuttingCountX = max((int) uvCuttingCountFloat.x, 1);
|
||||
int uvCuttingCountY = max((int) uvCuttingCountFloat.y, 1);
|
||||
|
||||
int totalFrameCount = uvCuttingCountX * uvCuttingCountY;
|
||||
|
||||
// (2) currentFrameIndex를 [0, totalFrameCount)로 래핑 (정수 % 제거)
|
||||
int wrappedFrameIndex = currentFrameIndex;
|
||||
if (totalFrameCount > 0)
|
||||
{
|
||||
float inverseTotalFrameCount = 1.0f / (float) totalFrameCount;
|
||||
|
||||
// loopCount = floor(currentFrameIndex / totalFrameCount)
|
||||
int loopCount = (int) floor((float) currentFrameIndex * inverseTotalFrameCount);
|
||||
|
||||
wrappedFrameIndex = currentFrameIndex - loopCount * totalFrameCount;
|
||||
|
||||
// 음수 프레임까지 방어(선택)
|
||||
if (wrappedFrameIndex < 0)
|
||||
{
|
||||
wrappedFrameIndex += totalFrameCount;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
wrappedFrameIndex = 0;
|
||||
}
|
||||
|
||||
// (3) 가로 기준으로 행/열 구하기 (정수 /, % 제거)
|
||||
float inverseCuttingCountX = 1.0f / (float) uvCuttingCountX;
|
||||
float inverseCuttingCountY = 1.0f / (float) uvCuttingCountY;
|
||||
|
||||
// frameIndexY = floor(wrappedFrameIndex / uvCuttingCountX)
|
||||
int frameIndexY = (int) floor((float) wrappedFrameIndex * inverseCuttingCountX);
|
||||
|
||||
// frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX (% 대체)
|
||||
int frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX;
|
||||
|
||||
// (4) UV 변환
|
||||
float2 resultUV = originalUV;
|
||||
resultUV.x = resultUV.x * inverseCuttingCountX + (float) frameIndexX * inverseCuttingCountX;
|
||||
resultUV.y = resultUV.y * inverseCuttingCountY + (float) frameIndexY * inverseCuttingCountY;
|
||||
|
||||
return resultUV;
|
||||
float2 UV = vUV; // 이미지의 UV값
|
||||
|
||||
int iTotalFrame = vUVCutting.x * vUVCutting.y; // 이미지의 최대 프레임 (몇 곱하기 몇인지)
|
||||
|
||||
int iFrameX = iCurrentFrame % (int) vUVCutting.x; // 현재 x축의 위치(현재 이미지의 몇번째 칸을 보여줄 지)
|
||||
int iFrameY = iCurrentFrame / (int) vUVCutting.x; // 현재 y축의 위치(현재 이미지의 몇번째 줄을 보여줄 지)
|
||||
|
||||
float fFreamWidth = 1.0 / vUVCutting.x; // 1.0 나누기 이미지 갯수를 해서 한칸에 얼마나 갈지 정해준다.
|
||||
float fFreamHeight = 1.0 / vUVCutting.y; // 1.0 나누기 이미지 갯수를 해서 한줄에 얼마나 갈지 정해준다.
|
||||
|
||||
UV.x = UV.x * fFreamWidth + iFrameX * fFreamWidth; // 먼저 uv를 0~1이 아닌 0~fFrameWidth로 만든 다음에 한칸씩 옆으로 밀어준다.
|
||||
UV.y = UV.y * fFreamHeight + iFrameY * fFreamHeight; // 먼저 uv를 0~1이 아닌 0~fFrameHeight로 만든 다음에 한줄씩 밑으로 내려준다.
|
||||
|
||||
return UV;
|
||||
}
|
||||
//float2 UV_Cutting(float2 originalUV, float2 uvCuttingCountFloat, int currentFrameIndex)
|
||||
//{
|
||||
// // (1) 칸 개수는 정수로 취급 (0 방지)
|
||||
// int uvCuttingCountX = max((int) uvCuttingCountFloat.x, 1);
|
||||
// int uvCuttingCountY = max((int) uvCuttingCountFloat.y, 1);
|
||||
|
||||
// int totalFrameCount = uvCuttingCountX * uvCuttingCountY;
|
||||
|
||||
// // (2) currentFrameIndex를 [0, totalFrameCount)로 래핑 (정수 % 제거)
|
||||
// int wrappedFrameIndex = currentFrameIndex;
|
||||
// if (totalFrameCount > 0)
|
||||
// {
|
||||
// float inverseTotalFrameCount = 1.0f / (float) totalFrameCount;
|
||||
|
||||
// // loopCount = floor(currentFrameIndex / totalFrameCount)
|
||||
// int loopCount = (int) floor((float) currentFrameIndex * inverseTotalFrameCount);
|
||||
|
||||
// wrappedFrameIndex = currentFrameIndex - loopCount * totalFrameCount;
|
||||
|
||||
// // 음수 프레임까지 방어(선택)
|
||||
// if (wrappedFrameIndex < 0)
|
||||
// {
|
||||
// wrappedFrameIndex += totalFrameCount;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// wrappedFrameIndex = 0;
|
||||
// }
|
||||
|
||||
// // (3) 가로 기준으로 행/열 구하기 (정수 /, % 제거)
|
||||
// float inverseCuttingCountX = 1.0f / (float) uvCuttingCountX;
|
||||
// float inverseCuttingCountY = 1.0f / (float) uvCuttingCountY;
|
||||
|
||||
// // frameIndexY = floor(wrappedFrameIndex / uvCuttingCountX)
|
||||
// int frameIndexY = (int) floor((float) wrappedFrameIndex * inverseCuttingCountX);
|
||||
|
||||
// // frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX (% 대체)
|
||||
// int frameIndexX = wrappedFrameIndex - frameIndexY * uvCuttingCountX;
|
||||
|
||||
// // (4) UV 변환
|
||||
// float2 resultUV = originalUV;
|
||||
// resultUV.x = resultUV.x * inverseCuttingCountX + (float) frameIndexX * inverseCuttingCountX;
|
||||
// resultUV.y = resultUV.y * inverseCuttingCountY + (float) frameIndexY * inverseCuttingCountY;
|
||||
|
||||
// return resultUV;
|
||||
//}
|
||||
|
||||
|
||||
// (Kd F(Lambert)) + (Ks F(cook-torrance))
|
||||
|
||||
@@ -51,7 +51,9 @@ PS_OUT PS_MAIN(PS_IN In)
|
||||
|
||||
|
||||
vector vMixedDiffuse = g_MixedDiffuseTexture.Sample(PointSampler, In.vTexcoord);
|
||||
float fRevealage = g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r;
|
||||
float fRevealage = clamp(g_RevealageTexture.Sample(PointSampler, In.vTexcoord).r, 0.f ,1.f);
|
||||
|
||||
|
||||
|
||||
|
||||
Out.vBackBuffer = vector(vMixedDiffuse.rgb / fRevealage , fRevealage);
|
||||
|
||||
@@ -569,7 +569,7 @@ void CRenderer::Render_Fog()
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Fog"), m_pShader, "g_Texture"))) {
|
||||
return;
|
||||
}
|
||||
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::DEBUG));
|
||||
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::PRINT_BACKBUFFER));
|
||||
|
||||
m_pVIBuffer->Bind_Resources();
|
||||
m_pVIBuffer->Render();
|
||||
@@ -585,7 +585,7 @@ void CRenderer::Render_Fog()
|
||||
return;
|
||||
}
|
||||
|
||||
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::PRINT_BACKBUFFER));
|
||||
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::FOG));
|
||||
|
||||
m_pVIBuffer->Bind_Resources();
|
||||
m_pVIBuffer->Render();
|
||||
|
||||
Reference in New Issue
Block a user