]> git.tdb.fi Git - libs/gl.git/blobdiff - shaderlib/common.glsl
Fix some errors in test cases
[libs/gl.git] / shaderlib / common.glsl
index 4a81636037be1224d0d2856cdfd90b67d8eef3fc..bac82fc131150bf0895db30d975c71cb398ae56d 100644 (file)
@@ -1,7 +1,7 @@
 import msp_interface;
 import shadow;
 
-const bool use_normal_map = false;
+layout(constant_id=auto) const bool use_normal_map = false;
 
 #pragma MSP stage(vertex)
 vec4 get_vertex_position()
@@ -44,7 +44,6 @@ void standard_transform()
        out vec3 tbn_halfway_dir = eye_halfway_dir*eye_tbn_matrix;
 
        out vec3 tbn_zenith_dir = eye_zenith_dir*eye_tbn_matrix;
-       out vec3 shadow_coord = (shd_eye_matrix*eye_vertex).xyz;
        out float fog_coord = eye_vertex.z;
 
        for(int i=0; i<max_clip_planes; ++i)