1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-26 21:35:28 +01:00

Fix shadow flicker on camera offset update (#15709)

This commit is contained in:
sfan5
2025-01-25 10:47:52 +01:00
committed by GitHub
parent 7c6ade0fc5
commit b861f0c5c5
4 changed files with 25 additions and 22 deletions

View File

@@ -34,9 +34,9 @@ public:
f32 farValue = 100.0f);
~DirectionalLight() = default;
//DISABLE_CLASS_COPY(DirectionalLight)
void updateCameraOffset(const Camera *cam);
void update_frustum(const Camera *cam, Client *client, bool force = false);
void updateFrustum(const Camera *cam, Client *client);
// when set direction is updated to negative normalized(direction)
void setDirection(v3f dir);