X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fshadow.glsl;h=049ec188e5a97a67a6e42a6a87e5e3c315e284df;hb=a741acd5c501c03de5181656498d2bcbe0df9157;hp=2e8a05b0889ab77464cc45e4324cc1e231c222d0;hpb=5e611353c5fcaf9219bd3037a32bce0f91313264;p=libs%2Fgl.git diff --git a/shaderlib/shadow.glsl b/shaderlib/shadow.glsl index 2e8a05b0..049ec188 100644 --- a/shaderlib/shadow.glsl +++ b/shaderlib/shadow.glsl @@ -9,13 +9,13 @@ struct ShadowParameters vec2 bias; }; -uniform ShadowMap +layout(set=0) uniform ShadowMap { ShadowParameters shadows[max_lights]; mat4 shd_world_matrix[max_lights*4]; }; -uniform sampler2DShadow shadow_map; +layout(set=0) uniform sampler2DShadow shadow_map; layout(constant_id=auto) const bool use_shadow_map = false;