mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- Fix wrong spot direction
This commit is contained in:
parent
5f36b86013
commit
f398286162
1 changed files with 3 additions and 3 deletions
|
@ -142,9 +142,9 @@ void gl_AddLightToList(int group, ADynamicLight * light, FDynLightData &ldata)
|
|||
|
||||
DAngle negPitch = -light->Angles.Pitch;
|
||||
float xyLen = negPitch.Cos();
|
||||
spotDirX = light->Angles.Yaw.Cos() * xyLen;
|
||||
spotDirY = light->Angles.Yaw.Sin() * xyLen;
|
||||
spotDirZ = negPitch.Sin();
|
||||
spotDirX = -light->Angles.Yaw.Cos() * xyLen;
|
||||
spotDirY = -light->Angles.Yaw.Sin() * xyLen;
|
||||
spotDirZ = -negPitch.Sin();
|
||||
}
|
||||
|
||||
float *data = &ldata.arrays[i][ldata.arrays[i].Reserve(16)];
|
||||
|
|
Loading…
Reference in a new issue