mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-25 05:35:25 +02:00
Avoid shadow flicker at certain angles (#12961)
Change the way look direction and camera position are quantized when calculating light frustum
This commit is contained in:
@@ -114,6 +114,10 @@ private:
|
||||
|
||||
v3f pos;
|
||||
v3f direction{0};
|
||||
|
||||
v3f last_cam_pos_world{0,0,0};
|
||||
v3f last_look{0,1,0};
|
||||
|
||||
shadowFrustum shadow_frustum;
|
||||
shadowFrustum future_frustum;
|
||||
bool dirty{false};
|
||||
|
||||
Reference in New Issue
Block a user