[fix] Light_Main Release 디버거 추
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user