Merge pull request #883 from SpicyGangjeong/Develope

Follow
This commit is contained in:
hyunbin14
2026-02-05 21:38:27 +09:00
committed by GitHub
10 changed files with 24 additions and 33 deletions
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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();
@@ -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
@@ -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();
+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
};