[add] DEBUG_SHADOW 추
This commit is contained in:
@@ -406,8 +406,9 @@ void CBroom::PlayerInput(_float fTimeDelta)
|
||||
m_Input.bTurbo = false;
|
||||
m_pInfoInstance->Event_CallBack(TEXT("BroomBooster"), &m_Input.bTurbo);
|
||||
}
|
||||
|
||||
#ifndef DEBUG_SHADOW
|
||||
m_bTurbo = m_Input.bTurbo;
|
||||
#endif // !DEBUG_SHADOW
|
||||
}
|
||||
|
||||
void CBroom::Set_AISpeed(_float speedMul, _float accelMul)
|
||||
|
||||
@@ -227,9 +227,11 @@ HRESULT CPlayer::Behavior_IdleExitCheck(_float fTimeDelta)
|
||||
else if (SUCCEEDED(InputSpell())) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
#ifndef DEBUG_SHADOW
|
||||
else if (m_pGameInstance->Mouse_Down(DIM_LBUTTON)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
#endif // !DEBUG_SHADOW
|
||||
else if (m_pGameInstance->Key_Down(DIK_V)) {
|
||||
m_pFSM->Change_State(FSMSTATE::COMBAT);
|
||||
}
|
||||
|
||||
@@ -323,21 +323,36 @@ float3 DecodeNormalFromRG(Texture2D NormalMap, SamplerState Samp, float2 uv)
|
||||
}
|
||||
|
||||
// BackGround ForeGround 합은 1
|
||||
float2 DepthCompare(float fCenterDepth, float fSampleDepth, float fDepthScale)
|
||||
float2 ComputeDepthWeights(float fCenterDepth, float fSampleDepth, float fDepthScale)
|
||||
{
|
||||
return saturate(0.5f + float2(fDepthScale, -fDepthScale) * (fSampleDepth - fCenterDepth));
|
||||
}
|
||||
float delta = fSampleDepth - fCenterDepth;
|
||||
|
||||
float2 SpreadCompare(float fOffsetLength, float2 fSpreadLength, float fPixelToSampleUnitsScale)
|
||||
// backgroundWeight: sample이 더 멀수록 증가
|
||||
float backgroundWeight = saturate(0.5f + fDepthScale * delta);
|
||||
float foregroundWeight = 1.0f - backgroundWeight;
|
||||
|
||||
return float2(backgroundWeight, foregroundWeight);
|
||||
}
|
||||
float ComputeSpreadWeight(float fOffsetLength, float fSpreadLength, float fPixelToSampleUnitsScale)
|
||||
{
|
||||
return saturate(fPixelToSampleUnitsScale * fSpreadLength - fOffsetLength + 1.f);
|
||||
}
|
||||
|
||||
float SampleWeight(float fCenterDepth, float fSampleDepth, float fOffsetLength, float fCenterSpreadLength, float fSampleSpreadLength, float fPixelToSampleUnitsScale, float fDepthScale)
|
||||
// fCenterDepth : 현재 중심 픽셀의 깊이
|
||||
// fSampleDepth : 샘플 픽셀의 깊이
|
||||
// fOffsetLength : 중심에서 샘플까지의 거리
|
||||
// fCenterSpreadLength : 중심 픽셀의 블러 반경
|
||||
// fSampleSpreadLength : 샘플 픽셀의 블러 반경
|
||||
// fPixelToSampleUnitsScale : spread/offset 단위
|
||||
// fDepthScale : 깊이 차이에 얼마나 민감하게 전경/배경을 나눌지
|
||||
float SampleWeight(float fCenterDepth, float fSampleDepth, float fOffsetLength, float fCenterSpreadLength,
|
||||
float fSampleSpreadLength, float fPixelToSampleUnitsScale, float fDepthScale)
|
||||
{
|
||||
float2 vDepthCompare = DepthCompare(fCenterDepth, fSampleDepth, fDepthScale);
|
||||
float2 vSpreadCompare = SpreadCompare(fOffsetLength, float2(fCenterSpreadLength, fSampleSpreadLength), fPixelToSampleUnitsScale);
|
||||
return dot(vDepthCompare, vSpreadCompare);
|
||||
float2 vDepthCompare = ComputeDepthWeights(fCenterDepth, fSampleDepth, fDepthScale);
|
||||
|
||||
float fSpreadCenter = ComputeSpreadWeight(fOffsetLength, fCenterSpreadLength, fPixelToSampleUnitsScale);
|
||||
float fSpreadSample = ComputeSpreadWeight(fOffsetLength, fSampleSpreadLength, fPixelToSampleUnitsScale);
|
||||
|
||||
return vDepthCompare.x * fSpreadCenter + vDepthCompare.y * fSpreadSample;
|
||||
}
|
||||
|
||||
float4x4 RotateX(float fAngle)
|
||||
|
||||
@@ -225,11 +225,7 @@ void CLight::Describe_Entity()
|
||||
GUI::Text("Direction:");
|
||||
GUI::InputFloat3("##Direction", (_float*)m_LightDesc.pDirection);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
m_pOwner->Get_Component<CTransform>()->Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
|
||||
|
||||
GUI::TreePop();
|
||||
|
||||
@@ -254,9 +254,15 @@ _float CPipeLine::Get_ShadowBoxFar(_uint iShadowBoxIndex)
|
||||
|
||||
void CPipeLine::Update()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
Describe_Entity();
|
||||
#endif // DEBUG
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
static _bool m_bRenderSystem = false;
|
||||
if (m_pGameInstance->Key_Up(DIK_F6)) {
|
||||
m_bRenderSystem = !m_bRenderSystem;
|
||||
}
|
||||
if (true == m_bRenderSystem) {
|
||||
Describe_Entity();
|
||||
}
|
||||
#endif // RELEASE_DEBUGGER
|
||||
Update_ShadowDepthNdcZ();
|
||||
|
||||
XMStoreFloat4x4(&m_TransformStateMatrices[ENUM_CLASS(D3DTS::VIEW_INV)], XMMatrixInverse(nullptr, Get_Transform_Matrix(D3DTS::VIEW)));
|
||||
@@ -545,13 +551,13 @@ void CPipeLine::Free()
|
||||
m_mapGlobalSRV.clear();
|
||||
SAFE_RELEASE(m_pGameInstance);
|
||||
}
|
||||
#ifdef _DEBUG
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
|
||||
void CPipeLine::Describe_Entity()
|
||||
{
|
||||
GUI::Begin("SYSTEM");
|
||||
if (GUI::CollapsingHeader("PipeLine")) {
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
GUI::PushItemWidth(400);
|
||||
_bool bModified = { false };
|
||||
_float fNear = m_fShadowNearBoxRatio;
|
||||
_float fFar = m_fShadowFarBoxRatio;
|
||||
@@ -564,15 +570,15 @@ void CPipeLine::Describe_Entity()
|
||||
if (GUI::DragFloat("m_fShadowNearBoxRatio", &fNear, 0.001f, 0.001f, 0.999f, "%.3f")) {
|
||||
bModified = true;
|
||||
}
|
||||
if (GUI::DragFloat("m_fShadowFarBoxRatio", &fFar, 0.001f, 0.001f, 0.999f, "%.3f")) {
|
||||
bModified = true;
|
||||
}
|
||||
if (GUI::DragFloat("m_fSafe_RadiusMultiplier", &fSafe_RadiusMultiplier, 0.01f, 1.f, 3.f, "%.3f")) {
|
||||
bModified = true;
|
||||
}
|
||||
if (GUI::DragFloat("m_fSafe_RadiusMargin", &fSafe_RadiusMargin, 1.f, 10.f, 40.f, "%.3f")) {
|
||||
if (GUI::DragFloat("m_fShadowMiddleBoxRatio", &fFar, 0.001f, 0.001f, 0.999f, "%.3f")) {
|
||||
bModified = true;
|
||||
}
|
||||
//if (GUI::DragFloat("m_fSafe_RadiusMultiplier", &fSafe_RadiusMultiplier, 0.01f, 1.f, 3.f, "%.3f")) {
|
||||
// bModified = true;
|
||||
//}
|
||||
//if (GUI::DragFloat("m_fSafe_RadiusMargin", &fSafe_RadiusMargin, 1.f, 10.f, 40.f, "%.3f")) {
|
||||
// bModified = true;
|
||||
//}
|
||||
if (GUI::DragFloat4("ShadowBiasNMFS", (_float*)&vShadowBias, 0.0001f, 0.0001f, 1.f, "%.4f")) {
|
||||
bModified = true;
|
||||
}
|
||||
@@ -599,4 +605,4 @@ void CPipeLine::Describe_Entity()
|
||||
GUI::End();
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
#endif // RELEASE_DEBUGGER
|
||||
|
||||
@@ -605,7 +605,7 @@ void CRenderTarget_Manager::RenderTarget_Debuger()
|
||||
GUI::DragInt("Target Size Y", &m_iSizeY);
|
||||
GUI::PopItemWidth();
|
||||
ImGuiWindowFlags window_flags = ImGuiWindowFlags_HorizontalScrollbar;
|
||||
GUI::BeginChild("RTDebugger", { 120.f, 200.f }, ImGuiChildFlags_None, window_flags);
|
||||
GUI::BeginChild("RTDebugger", { 200.f, 200.f }, ImGuiChildFlags_None, window_flags);
|
||||
for (auto& [key, pRenderTarget] : m_RenderTargets)
|
||||
{
|
||||
_string strKey = CMyTools::ToString(key);
|
||||
|
||||
@@ -107,6 +107,22 @@ void CRenderer::Render_PreShadow(const _float4x4& ViewMatrix, const _float4x4& P
|
||||
}
|
||||
|
||||
m_pContext->RSSetViewports(iNumViewOldPort, &ViewPortOldDesc);
|
||||
|
||||
#ifdef DEBUG_SHADOW
|
||||
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_PreShadow_DEBUG"), m_pPreShadowDSV))) {
|
||||
return;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_PreShadow"), m_pShader, "g_VelocityTexture"))) {
|
||||
assert(false);
|
||||
return;
|
||||
}
|
||||
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::DEBUG_RtoRGBA));
|
||||
m_pVIBuffer->Bind_Resources();
|
||||
m_pVIBuffer->Render();
|
||||
if (FAILED(m_pGameInstance->End_MRT())) {
|
||||
return;
|
||||
}
|
||||
#endif // DEBUG_SHADOW
|
||||
}
|
||||
|
||||
HRESULT CRenderer::Bind_PreShadowMatrix(class CShader* pShader, const _char* pConstants, D3DTS eType)
|
||||
@@ -323,6 +339,26 @@ void CRenderer::Render_Shadow()
|
||||
}
|
||||
m_pContext->RSSetViewports(iNumViewOldPort, &ViewPortOldDesc);
|
||||
|
||||
#ifdef DEBUG_SHADOW
|
||||
if (FAILED(m_pGameInstance->Begin_MRT(TEXT("MRT_Shadow_DEBUG"), m_pPreShadowDSV))) {
|
||||
return;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Shadow_Near"), m_pShader, "g_VelocityTexture"))) {
|
||||
assert(false);
|
||||
return;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Bind_RenderTarget(TEXT("Target_Shadow_Middle"), m_pShader, "g_TileVelocityTexture"))) {
|
||||
assert(false);
|
||||
return;
|
||||
}
|
||||
m_pShader->Begin(ENUM_CLASS(SHADER_PASS_DEFERRED::DEBUG_RtoRGBA));
|
||||
m_pVIBuffer->Bind_Resources();
|
||||
m_pVIBuffer->Render();
|
||||
if (FAILED(m_pGameInstance->End_MRT())) {
|
||||
return;
|
||||
}
|
||||
#endif // DEBUG_SHADOW
|
||||
|
||||
COMPUTE_TIMEDELTA("Timer_Render_Shadow");
|
||||
}
|
||||
|
||||
|
||||
@@ -213,6 +213,23 @@ HRESULT CRenderer::Initialize()
|
||||
DXGI_FORMAT_R16_FLOAT, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef DEBUG_SHADOW
|
||||
/* Target_Shadow_Near */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Shadow_Near_DEBUG"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Target_Shadow_Middle */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Shadow_Middle_DEBUG"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* Target_PreShadow */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_PreShadow_DEBUG"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // DEBUG_SHADOW
|
||||
|
||||
/* Target_Blur */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_Blur"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
@@ -232,7 +249,6 @@ HRESULT CRenderer::Initialize()
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
|
||||
/* Target_ENV_Blur_X */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_ENV_Blur_X"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R16G16B16A16_FLOAT, _float4(0.0f, 0.0f, 0.0f, 0.0f)))) {
|
||||
@@ -258,7 +274,7 @@ HRESULT CRenderer::Initialize()
|
||||
DXGI_FORMAT_R32_FLOAT, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_SSAO
|
||||
/* Target_SSAO_AmbientOcclusion */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_SSAO_AmbientOcclusion_DEBUG"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
@@ -269,6 +285,7 @@ HRESULT CRenderer::Initialize()
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(1.f, 1.f, 1.f, 1.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif //DEBUG_SSAO
|
||||
|
||||
/* Target_AfterCombined */
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_AfterCombined"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
@@ -373,14 +390,15 @@ HRESULT CRenderer::Initialize()
|
||||
DXGI_FORMAT_R32G32_FLOAT, _float4(0.5f, 0.5f, 0.f, 0.f)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_VelocityMap_DEBUG"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(0.5f, 0.5f, 0.5f, 0.f)))) {
|
||||
#ifdef DEBUG_MOTIONBLUR
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_MotionBlur_DEBUG"), TEXT("Target_VelocityMap_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_VelocityTent_DEBUG"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB, _float4(0.5f, 0.5f, 0.5f, 0.f)))) {
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_MotionBlur_DEBUG"), TEXT("Target_VelocityTent_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // DEBUG_MOTIONBLUR
|
||||
|
||||
if (FAILED(m_pGameInstance->Add_RenderTarget(TEXT("Target_BeforeNormal"), (_uint)Viewport.Width, (_uint)Viewport.Height,
|
||||
DXGI_FORMAT_R16G16B16A16_UNORM, _float4(0.0f, 0.f, 0.f, 0.f)))) {
|
||||
return E_FAIL;
|
||||
@@ -447,12 +465,14 @@ HRESULT CRenderer::Initialize()
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_SSAO_BLUR"), TEXT("Target_SSAO_BLUR")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef DEBUG_SSAO
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_SSAO_BLUR_DEBUG"), TEXT("Target_SSAO_AmbientOcclusion_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_SSAO_BLUR_DEBUG"), TEXT("Target_SSAO_BLUR_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // DEBUG_SSAO
|
||||
/* MRT_Combined */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Combined"), TEXT("Target_Fog")))) {
|
||||
return E_FAIL;
|
||||
@@ -481,11 +501,28 @@ HRESULT CRenderer::Initialize()
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Shadow_Middle"), TEXT("Target_Shadow_Middle")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef DEBUG_SHADOW
|
||||
/* MRT_Shadow */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Shadow_DEBUG"), TEXT("Target_Shadow_Near_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
/* MRT_Shadow_Middle */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Shadow_DEBUG"), TEXT("Target_Shadow_Middle_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // DEBUG_SHADOW
|
||||
|
||||
|
||||
/* MRT_PreShadow */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_PreShadow"), TEXT("Target_PreShadow")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef DEBUG_SHADOW
|
||||
/* MRT_PreShadow */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_PreShadow_DEBUG"), TEXT("Target_PreShadow_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // DEBUG_SHADOW
|
||||
|
||||
/* MRT_Blur */
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_Blur"), TEXT("Target_Blur")))) {
|
||||
@@ -550,12 +587,15 @@ HRESULT CRenderer::Initialize()
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_MotionBlur"), TEXT("Target_VelocityMapFinal")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#ifdef DEBUG_MOTIONBLUR
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_MotionBlur_DEBUG"), TEXT("Target_VelocityMap_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
if (FAILED(m_pGameInstance->Add_MRT(TEXT("MRT_MotionBlur_DEBUG"), TEXT("Target_VelocityTent_DEBUG")))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
#endif // DEBUG_MOTIONBLUR
|
||||
|
||||
|
||||
|
||||
/* MRT_Blur_Mesh */
|
||||
|
||||
@@ -640,9 +640,13 @@ void TransformXMLInput(CTransform* pTransform)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif // _DEBUG
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
|
||||
void CTransform::Describe_Entity()
|
||||
{
|
||||
//#ifdef 기무리
|
||||
#ifdef _DEBUG
|
||||
if (GUI::TreeNode("NuriDebug")) {
|
||||
{
|
||||
_vector vScale, vRotQ, vTrans;
|
||||
@@ -652,6 +656,7 @@ void CTransform::Describe_Entity()
|
||||
XMStoreFloat4(&rotQ, vRotQ);
|
||||
XMStoreFloat4(&trans, vTrans);
|
||||
TransformXMLInput(this);
|
||||
|
||||
if (GUI::SmallButton("Copy")) {
|
||||
_char buf[512] = {};
|
||||
sprintf_s(
|
||||
@@ -671,7 +676,7 @@ void CTransform::Describe_Entity()
|
||||
}
|
||||
GUI::TreePop();
|
||||
}
|
||||
//#endif // 기무리
|
||||
#endif _DEBUG
|
||||
if (GUI::TreeNode("Transform")) {
|
||||
GUI::Text("----- Gizmo ----");
|
||||
_float3 vMove = {};
|
||||
@@ -699,19 +704,17 @@ void CTransform::Describe_Entity()
|
||||
GUI::InputFloat("Y##Rotation", &m_vRotation.y, 1.f, 15.f);
|
||||
GUI::InputFloat("Z##Rotation", &m_vRotation.z, 1.f, 15.f);
|
||||
|
||||
#ifndef 기무리
|
||||
Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
#endif // 기무리
|
||||
#ifdef 기무리
|
||||
_float3 vRot = {};
|
||||
XMStoreFloat3(&vRot, Get_RollPitchYawVector());
|
||||
GUI::Text("R : %.2f", XMConvertToDegrees(vRot.x)); GUI::SameLine();
|
||||
GUI::Text("\tY : %.2f", XMConvertToDegrees(vRot.y)); GUI::SameLine();
|
||||
GUI::Text("\tP : %.2f", XMConvertToDegrees(vRot.z));
|
||||
if (GUI::SmallButton("ApplyRotation")) {
|
||||
Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
}
|
||||
#endif // 기무리
|
||||
//#ifdef 기무리
|
||||
// _float3 vRot = {};
|
||||
// XMStoreFloat3(&vRot, Get_RollPitchYawVector());
|
||||
// GUI::Text("R : %.2f", XMConvertToDegrees(vRot.x)); GUI::SameLine();
|
||||
// GUI::Text("\tY : %.2f", XMConvertToDegrees(vRot.y)); GUI::SameLine();
|
||||
// GUI::Text("\tP : %.2f", XMConvertToDegrees(vRot.z));
|
||||
// if (GUI::SmallButton("ApplyRotation")) {
|
||||
// Rotation(XMConvertToRadians(m_vRotation.x), XMConvertToRadians(m_vRotation.y), XMConvertToRadians(m_vRotation.z));
|
||||
// }
|
||||
//#endif // 기무리
|
||||
|
||||
|
||||
_float3 vScale = Get_Scale();
|
||||
@@ -730,8 +733,7 @@ void CTransform::Describe_Entity()
|
||||
GUI::TreePop();
|
||||
GUI::Spacing();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _DEBUG
|
||||
#endif
|
||||
|
||||
@@ -23,8 +23,9 @@
|
||||
#endif // !_DEBUG
|
||||
|
||||
#ifdef 기무리
|
||||
#define DEBUG_MOTIONBLUR
|
||||
#define DEBUG_SSAO
|
||||
//#define DEBUG_MOTIONBLUR
|
||||
//#define DEBUG_SSAO
|
||||
#define DEBUG_SHADOW
|
||||
#endif // 기무리
|
||||
|
||||
|
||||
|
||||
@@ -107,9 +107,9 @@ class CPipeLine final : public CBase
|
||||
public:
|
||||
static CPipeLine* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
virtual void Describe_Entity();
|
||||
#endif // _DEBUG
|
||||
#endif // RELEASE_DEBUGGER
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -106,9 +106,9 @@ class ENGINE_DLL CTransform final :
|
||||
_float3 m_vMomentum = {}; // 현재 프레임에 계산된 이동량
|
||||
_float3 m_vBackMomentum = {}; // 다음 프레임에 계산될 이동량
|
||||
|
||||
#ifdef _DEBUG
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
_float3 m_vRotation = {0.f, 0.f, 0.f};
|
||||
#endif // _DEBUG
|
||||
#endif // RELEASE_DEBUGGER
|
||||
|
||||
|
||||
private:
|
||||
@@ -119,9 +119,9 @@ class ENGINE_DLL CTransform final :
|
||||
static CTransform* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
|
||||
virtual CComponent* Clone(void* pArg, class CGameObject* pOwner = nullptr) override;
|
||||
virtual void Free() override;
|
||||
#ifdef _DEBUG
|
||||
void Describe_Entity() override;
|
||||
#endif // _DEBUG
|
||||
#ifdef RELEASE_DEBUGGER
|
||||
void Describe_Entity();
|
||||
#endif // RELEASE_DEBUGGER
|
||||
};
|
||||
|
||||
NS_END
|
||||
|
||||
Reference in New Issue
Block a user