Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,11 @@ private:
float farPlane = 1000.0f;

glm::mat4 viewMatrix = glm::mat4(1.0f);
glm::mat4 projectionMatrix = glm::mat4(1.0f);
bool projectionDirty = true;
// mutable: GetProjectionMatrix() is logically const (it just returns a
// matrix) even though it lazily recomputes and caches that matrix on
// first access after the projection parameters change.
mutable glm::mat4 projectionMatrix = glm::mat4(1.0f);
mutable bool projectionDirty = true;

public:
void SetPerspective(float fov, float aspect, float near, float far) {
Expand Down
Loading