gfx renderers standardization, bug fixes

This commit is contained in:
tmj-fstate
2019-11-07 00:28:59 +01:00
parent d06fad3b89
commit a74402804d
13 changed files with 348 additions and 165 deletions

View File

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

View File

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