Implement SetLightPosition and related (#757)

* Implement SetLightPosition and related

* Update p name

* style
This commit is contained in:
Christian Semmler
2024-03-29 16:42:39 -04:00
committed by GitHub
parent f447397eef
commit 369f3fba22
4 changed files with 68 additions and 12 deletions

View File

@@ -182,3 +182,24 @@ void LegoView1::Destroy()
LegoView::Destroy();
}
// FUNCTION: LEGO1 0x100abb60
void LegoView1::SetLight(BOOL bDirectionalLight, Tgl::FloatMatrix4& rMatrix)
{
Tgl::Light* pLight;
if (bDirectionalLight == FALSE) {
pLight = m_pSunLight;
}
else {
pLight = m_pDirectionalLight;
}
SetLight(pLight, rMatrix);
}
// FUNCTION: LEGO1 0x100abb80
void LegoView1::SetLight(Tgl::Light* pLight, Tgl::FloatMatrix4& rMatrix)
{
pLight->SetTransformation(rMatrix);
}