mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 00:49:19 +02:00
inversed view transform uniform
This commit is contained in:
@@ -65,6 +65,7 @@ void gl::glsl_common_setup()
|
||||
{
|
||||
mat4 projection;
|
||||
mat4 lightview;
|
||||
mat4 inv_view;
|
||||
vec3 scene_extra;
|
||||
float time;
|
||||
};
|
||||
|
||||
3
gl/ubo.h
3
gl/ubo.h
@@ -37,11 +37,12 @@ namespace gl
|
||||
{
|
||||
glm::mat4 projection;
|
||||
glm::mat4 lightview;
|
||||
glm::mat4 inv_view;
|
||||
glm::vec3 scene_extra;
|
||||
float time;
|
||||
};
|
||||
|
||||
static_assert(sizeof(scene_ubs) == 144, "bad size of ubs");
|
||||
static_assert(sizeof(scene_ubs) == 208, "bad size of ubs");
|
||||
|
||||
const size_t MAX_PARAMS = 3;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user