Multiple point lights

This commit is contained in:
StratiX0
2024-03-28 10:56:57 +01:00
parent 16db21608a
commit e5c88797b0
17 changed files with 4143 additions and 208 deletions

View File

@@ -52,6 +52,12 @@ void LightClass::SetSpecularPower(float power)
return;
}
void LightClass::SetPosition(float x, float y, float z)
{
m_position = XMFLOAT4(x, y, z, 1.0f);
return;
}
XMFLOAT4 LightClass::GetAmbientColor()
{
return m_ambientColor;
@@ -77,4 +83,9 @@ XMFLOAT4 LightClass::GetSpecularColor()
float LightClass::GetSpecularPower()
{
return m_specularPower;
}
}
XMFLOAT4 LightClass::GetPosition()
{
return m_position;
}