mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
Fix spotlight rotation
This commit is contained in:
parent
2c795a5a8b
commit
2b4db4c601
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue