diff --git a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp index 75a74ac27..c9a3a016e 100644 --- a/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp +++ b/Jusin154_Team3D/Client/Private/BroomRacerAI.cpp @@ -194,8 +194,6 @@ HRESULT CBroomRacerAI::Render() } } - - return S_OK; } HRESULT CBroomRacerAI::Render_Shadow(SHADOW eType) @@ -329,10 +327,7 @@ HRESULT CBroomRacerAI::Bind_ShaderResources() if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; } - _float Intensity = 0.f; - if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) { - return E_FAIL; - } + return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp b/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp index 018fe4de3..b17b2b510 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Assassin_Spector.cpp @@ -316,10 +316,6 @@ HRESULT CGoblin_Assassin_Spector::Bind_ShaderResources() return E_FAIL; } - _float Intensity = 0.f; - if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) { - return E_FAIL; - } return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp b/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp index 977d57ce3..e505bb819 100644 --- a/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp +++ b/Jusin154_Team3D/Client/Private/Goblin_Spector.cpp @@ -292,14 +292,9 @@ HRESULT CGoblin_Spector::Bind_ShaderResources() if (FAILED(m_pShaderCom->Bind_Matrix("g_ProjMatrix", m_pGameInstance->Get_Transform_Float4x4(D3DTS::PROJ)))) { return E_FAIL; } - if (FAILED(m_pShaderCom->Bind_RawValue("g_fFar", m_pGameInstance->Get_CurrentCameraFar(), sizeof(_float)))) { return E_FAIL; } - _float Intensity = 0.f; - if (FAILED(m_pShaderCom->Bind_RawValue("g_fMBIntensity", &Intensity, sizeof(_float)))) { - return E_FAIL; - } return S_OK; } diff --git a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp index 83ea1618e..b81de7e0a 100644 --- a/Jusin154_Team3D/Client/Private/Human_Duelist.cpp +++ b/Jusin154_Team3D/Client/Private/Human_Duelist.cpp @@ -167,8 +167,6 @@ HRESULT CHuman_Duelist::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - _float fIntensity = 0.f; - m_pShaderCom->Bind_RawValue("g_fMBIntensity", &fIntensity, sizeof(_float)); RENDER eType = m_pGameInstance->Get_CurrentRenderPass(); if (RENDER::NONBLEND == eType) { _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); diff --git a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp index b649bcb61..e5e7c1036 100644 --- a/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp +++ b/Jusin154_Team3D/Client/Private/Level_GamePlay.cpp @@ -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()->Set_Color(vDiffuse, vAmbient, vSpecular); diff --git a/Jusin154_Team3D/Client/Private/Light_Main.cpp b/Jusin154_Team3D/Client/Private/Light_Main.cpp index fa319d2fd..5480114e1 100644 --- a/Jusin154_Team3D/Client/Private/Light_Main.cpp +++ b/Jusin154_Team3D/Client/Private/Light_Main.cpp @@ -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 diff --git a/Jusin154_Team3D/Client/Private/Player.cpp b/Jusin154_Team3D/Client/Private/Player.cpp index 84ebfc958..ccb34dd7b 100644 --- a/Jusin154_Team3D/Client/Private/Player.cpp +++ b/Jusin154_Team3D/Client/Private/Player.cpp @@ -233,8 +233,6 @@ HRESULT CPlayer::Render() if (FAILED(Bind_ShaderResources())) { return E_FAIL; } - _float fIntensity = 0.f; - m_pShaderCom->Bind_RawValue("g_fMBIntensity", &fIntensity, sizeof(_float)); RENDER eType = m_pGameInstance->Get_CurrentRenderPass(); if (RENDER::NONBLEND == eType) { _uint iNumMeshes = m_pModelCom->Get_NumMeshes(); diff --git a/Jusin154_Team3D/Client/Public/Light_Main.h b/Jusin154_Team3D/Client/Public/Light_Main.h index cab84486f..34d0563a8 100644 --- a/Jusin154_Team3D/Client/Public/Light_Main.h +++ b/Jusin154_Team3D/Client/Public/Light_Main.h @@ -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 }; diff --git a/Jusin154_Team3D/Engine/Private/Light.cpp b/Jusin154_Team3D/Engine/Private/Light.cpp index a7991c7b8..7c70d4f59 100644 --- a/Jusin154_Team3D/Engine/Private/Light.cpp +++ b/Jusin154_Team3D/Engine/Private/Light.cpp @@ -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()->Describe_Entity(); +#endif // _DEBUG + @@ -235,4 +238,4 @@ void CLight::Describe_Entity() GUI::Separator(); } -#endif // _DEBUG +#endif // RELEASE_DEBUGGER diff --git a/Jusin154_Team3D/Engine/Public/Light.h b/Jusin154_Team3D/Engine/Public/Light.h index e10ce328a..fcad506c0 100644 --- a/Jusin154_Team3D/Engine/Public/Light.h +++ b/Jusin154_Team3D/Engine/Public/Light.h @@ -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 };