16
0
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:
tmj-fstate
2019-11-29 16:20:21 +01:00
parent f9febd5887
commit 194400e1af
3 changed files with 5 additions and 3 deletions

View File

@@ -65,6 +65,7 @@ void gl::glsl_common_setup()
{
mat4 projection;
mat4 lightview;
mat4 inv_view;
vec3 scene_extra;
float time;
};

View File

@@ -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;