X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fcommon.glsl;h=bac82fc131150bf0895db30d975c71cb398ae56d;hb=1f870744029d50f29a060ddf68b8b7c40c6ef1ed;hp=05648e4c0c106f469b63ed0346dc4c8b32c0c9be;hpb=146df2d02940a04aeafe854bdd981a1489cc80b3;p=libs%2Fgl.git diff --git a/shaderlib/common.glsl b/shaderlib/common.glsl index 05648e4c..bac82fc1 100644 --- a/shaderlib/common.glsl +++ b/shaderlib/common.glsl @@ -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