Fix spotlight rotation

This commit is contained in:
RaveYard 2023-09-12 17:26:08 +02:00 committed by Christoph Oelckers
parent 2c795a5a8b
commit 2b4db4c601

View file

@ -293,8 +293,8 @@ void DoomLevelMesh::CreateLightList()
DAngle Angle = light->target->Angles.Yaw;
double xzLen = negPitch.Cos();
meshlight.SpotDir.X = float(-Angle.Cos() * xzLen);
meshlight.SpotDir.Y = float(-negPitch.Sin());
meshlight.SpotDir.Z = float(-Angle.Sin() * xzLen);
meshlight.SpotDir.Y = float(-Angle.Sin() * xzLen);
meshlight.SpotDir.Z = float(-negPitch.Sin());
}
else
{