]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/common.glsl
Rearrange various uniforms to be declared in the file which uses them
[libs/gl.git] / shaderlib / common.glsl
index 9e794f1d2c17eca99c48f847bf0d91ba96235ac1..f952c8bd6c1cb34c647d869011ea51fd61d1ff29 100644 (file)
@@ -1,6 +1,14 @@
 import msp_interface;
 import shadow;
 
+uniform EnvMap
+{
+       mat3 env_eye_matrix;
+};
+
+uniform sampler2D normal_map;
+uniform samplerCube environment_map;
+
 layout(constant_id=auto) const bool use_normal_map = false;
 
 #pragma MSP stage(vertex)