]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/shadow.glsl
Annotate uniforms with descriptor set layout qualifiers
[libs/gl.git] / shaderlib / shadow.glsl
index 2e8a05b0889ab77464cc45e4324cc1e231c222d0..049ec188e5a97a67a6e42a6a87e5e3c315e284df 100644 (file)
@@ -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;