mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Adjust shadowmap distortion to use entire SM texture (#12166)
This commit is contained in:
parent
0b5b2b2633
commit
48f7c5603e
12 changed files with 159 additions and 115 deletions
|
@ -29,12 +29,14 @@ class Client;
|
|||
|
||||
struct shadowFrustum
|
||||
{
|
||||
float zNear{0.0f};
|
||||
float zFar{0.0f};
|
||||
float length{0.0f};
|
||||
f32 zNear{0.0f};
|
||||
f32 zFar{0.0f};
|
||||
f32 length{0.0f};
|
||||
f32 radius{0.0f};
|
||||
core::matrix4 ProjOrthMat;
|
||||
core::matrix4 ViewMat;
|
||||
v3f position;
|
||||
v3f player;
|
||||
v3s16 camera_offset;
|
||||
};
|
||||
|
||||
|
@ -57,6 +59,8 @@ public:
|
|||
return direction;
|
||||
};
|
||||
v3f getPosition() const;
|
||||
v3f getPlayerPos() const;
|
||||
v3f getFuturePlayerPos() const;
|
||||
|
||||
/// Gets the light's matrices.
|
||||
const core::matrix4 &getViewMatrix() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue