[add] 시간에 따라 방향성 광원 바뀌는 기능 추가

[add] Fog 추가
This commit is contained in:
Chanbin Kim
2025-11-30 14:52:38 +09:00
parent f17d718e98
commit 8bd86af599
30 changed files with 1196 additions and 390 deletions
+7
View File
@@ -57,6 +57,13 @@ HRESULT CLight::Initialize(void* pArg)
return S_OK;
}
void CLight::Set_Color(_float4& vDiffuse, _float4& vAmbient, _float4& vSpecular)
{
memcpy(&m_LightDesc.vDiffuse, &vDiffuse, sizeof(_float4));
memcpy(&m_LightDesc.vAmbient, &vAmbient, sizeof(_float4));
memcpy(&m_LightDesc.vSpecular, &vSpecular, sizeof(_float4));
}
HRESULT CLight::Render(CShader* pShader, CVIBuffer* pVIBuffer) const
{
_uint iPassIndex = { 0 };