mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
fix scene_ubs layout
This commit is contained in:
5
gl/ubo.h
5
gl/ubo.h
@@ -43,12 +43,11 @@ namespace gl
|
|||||||
glm::mat4 projection;
|
glm::mat4 projection;
|
||||||
glm::mat4 inv_view;
|
glm::mat4 inv_view;
|
||||||
glm::mat4 lightview[MAX_CASCADES];
|
glm::mat4 lightview[MAX_CASCADES];
|
||||||
glm::vec4 cascade_end;
|
glm::vec3 cascade_end;
|
||||||
float time;
|
float time;
|
||||||
UBS_PAD(12);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(sizeof(scene_ubs) == 352, "bad size of ubs");
|
static_assert(sizeof(scene_ubs) == 336, "bad size of ubs");
|
||||||
|
|
||||||
const size_t MAX_PARAMS = 3;
|
const size_t MAX_PARAMS = 3;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user