[fix] Light_Main Release 디버거 추

This commit is contained in:
kimnuri
2026-02-05 21:15:30 +09:00
parent ef93ca194b
commit d79c790cb2
5 changed files with 23 additions and 14 deletions
@@ -1243,7 +1243,7 @@ void CLevel_GamePlay::ResetLevel_Environment()
{
vDiffuse = _float4(0.0471f, 0.0745f, 0.1294f, 0.2549f);
vAmbient = _float4(0.1686f, 0.1765f, 0.1373f, 0.0f);
vSpecular = _float4(0.0f, 0.0f, 0.0f, 0.0f);
vSpecular = _float4(0.5f, 0.5f, 0.5f, 0.0f);
}
m_pLight->Get_Component<CLight>()->Set_Color(vDiffuse, vAmbient, vSpecular);
+11 -5
View File
@@ -40,9 +40,15 @@ void CLight_Main::Priority_Update(_float fTimeDelta)
void CLight_Main::Update(_float fTimeDelta)
{
#ifdef _DEBUG
Describe_Entity();
#endif // _DEBUG
#ifdef RELEASE_DEBUGGER
static _bool s_bRenderSystem = false;
if (m_pGameInstance->Key_Up(DIK_F6)) {
s_bRenderSystem = !s_bRenderSystem;
}
if (s_bRenderSystem) {
Describe_Entity();
}
#endif // RELEASE_DEBUGGER
}
void CLight_Main::Late_Update(_float fTimeDelta)
@@ -215,7 +221,7 @@ void CLight_Main::Free()
Safe_Release(m_pLightCom);
}
#ifdef _DEBUG
#ifdef RELEASE_DEBUGGER
void CLight_Main::Describe_Entity()
{
@@ -235,4 +241,4 @@ void CLight_Main::Describe_Entity()
GUI::End();
}
#endif // _DEBUG
#endif // RELEASE_DEBUGGER
+3 -3
View File
@@ -35,9 +35,9 @@ class CLight_Main final : public CGameObject
static CLight_Main* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
virtual CGameObject* Clone(void* pArg, CGameObject* pOwner = nullptr) override;
virtual void Free() override;
#ifdef _DEBUG
virtual void Describe_Entity() override;
#endif // _DEBUG
#ifdef RELEASE_DEBUGGER
virtual void Describe_Entity();
#endif // RELEASE_DEBUGGER
};
+5 -2
View File
@@ -183,7 +183,7 @@ void CLight::Free()
}
#ifdef _DEBUG
#ifdef RELEASE_DEBUGGER
void CLight::Describe_Entity()
{
@@ -225,7 +225,10 @@ 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
@@ -235,4 +238,4 @@ void CLight::Describe_Entity()
GUI::Separator();
}
#endif // _DEBUG
#endif // RELEASE_DEBUGGER
+3 -3
View File
@@ -79,9 +79,9 @@ class ENGINE_DLL CLight final : public CComponent
static CLight* Create(ID3D11Device* pDevice, ID3D11DeviceContext* pContext);
CComponent* Clone(void* pArg, CGameObject* pOwner) override;
virtual void Free() override;
#ifdef _DEBUG
void Describe_Entity() override;
#endif // _DEBUG
#ifdef RELEASE_DEBUGGER
void Describe_Entity();
#endif // RELEASE_DEBUGGER
};