16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 00:49:19 +02:00

debug configurable headlight

This commit is contained in:
milek7
2018-12-09 19:55:53 +01:00
parent 3c33bf8133
commit bd8c5ed59a
5 changed files with 24 additions and 6 deletions

View File

@@ -31,6 +31,7 @@ void gl::glsl_common_setup()
float linear;
float quadratic;
float ambient;
};
layout(std140) uniform light_ubo

View File

@@ -88,7 +88,8 @@ namespace gl
float linear;
float quadratic;
UBS_PAD(8);
float ambient;
UBS_PAD(4);
};
static_assert(sizeof(light_element_ubs) == 64, "bad size of ubs");