mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
gfx renderers standardization, bug fixes
This commit is contained in:
@@ -58,6 +58,7 @@ void gl::glsl_common_setup()
|
||||
float emission;
|
||||
float fog_density;
|
||||
float alpha_mult;
|
||||
float shadow_tone;
|
||||
};
|
||||
|
||||
layout (std140) uniform scene_ubo
|
||||
|
||||
3
gl/ubo.h
3
gl/ubo.h
@@ -56,6 +56,7 @@ namespace gl
|
||||
float emission;
|
||||
float fog_density;
|
||||
float alpha_mult;
|
||||
float shadow_tone;
|
||||
UBS_PAD(4);
|
||||
|
||||
void set_modelview(const glm::mat4 &mv)
|
||||
@@ -65,7 +66,7 @@ namespace gl
|
||||
}
|
||||
};
|
||||
|
||||
static_assert(sizeof(model_ubs) == 196 + 16 * MAX_PARAMS, "bad size of ubs");
|
||||
static_assert(sizeof(model_ubs) == 200 + 16 * MAX_PARAMS, "bad size of ubs");
|
||||
|
||||
struct light_element_ubs
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user