Fixed occasionally 'stuck' lighting when in witchspace.

master
AnotherCommander 2018-09-26 22:37:03 +02:00
parent aedc53e191
commit 9153b506d5
1 changed files with 5 additions and 0 deletions

View File

@ -4474,6 +4474,11 @@ static const OOMatrix starboard_matrix =
{
[self setMainLightPosition:[cachedSun cameraRelativePosition]];
}
else
{
// in witchspace
[self setMainLightPosition:HPVectorToVector(HPvector_flip([PLAYER viewpointPosition]))];
}
OOGL(glLightfv(GL_LIGHT1, GL_POSITION, main_light_position));
}
else