]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/shadow.glsl
Rearrange various uniforms to be declared in the file which uses them
[libs/gl.git] / shaderlib / shadow.glsl
index 6f4acd2786a6319c242d9ff8300a00ecc535d0a7..f168fe7955431869b25f90b8909192453929bcd0 100644 (file)
@@ -1,5 +1,13 @@
 import msp_interface;
 
+uniform ShadowMap
+{
+       float shadow_darkness;
+       mat4 shd_eye_matrix;
+};
+
+uniform sampler2DShadow shadow_map;
+
 layout(constant_id=auto) const bool use_shadow_map = false;
 
 #pragma MSP stage(vertex)