1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Fix downward shadows at time 12000 (#16326)

This commit is contained in:
Lucas OH 2025-07-12 13:23:17 +02:00 committed by GitHub
parent 4f42b4308c
commit f71e1447c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -303,12 +303,14 @@ public:
CMatrix4<T> &buildProjectionMatrixOrthoRH(f32 widthOfViewVolume, f32 heightOfViewVolume, f32 zNear, f32 zFar, bool zClipFromZero = true);
//! Builds a left-handed look-at matrix.
//! NOTE: upVector must not be collinear to the postion-to-target vector
CMatrix4<T> &buildCameraLookAtMatrixLH(
const vector3df &position,
const vector3df &target,
const vector3df &upVector);
//! Builds a right-handed look-at matrix.
//! NOTE: upVector must not be collinear to the postion-to-target vector
CMatrix4<T> &buildCameraLookAtMatrixRH(
const vector3df &position,
const vector3df &target,