1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02: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
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,