mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
improve shadow map stability
This commit is contained in:
parent
b272d86619
commit
ad0396b31e
7 changed files with 68 additions and 14 deletions
|
|
@ -21,6 +21,9 @@ public:
|
|||
float near = 0.05f;
|
||||
float far = 1500.0f;
|
||||
|
||||
bool projset = false;
|
||||
glm::mat4 projection;
|
||||
|
||||
Camera() {
|
||||
updateVectors();
|
||||
}
|
||||
|
|
@ -36,6 +39,8 @@ public:
|
|||
void setFov(float fov);
|
||||
float getFov() const;
|
||||
|
||||
void setProjection(const glm::mat4& matrix);
|
||||
|
||||
float getAspectRatio() const;
|
||||
void setAspectRatio(float ar);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue