X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=shaderlib%2Fcommon.glsl;h=eb191e45dc7f6e03ce31473b81eba73449241c40;hb=713ff9619daa858ffbd428f7699cd57598563dbd;hp=4a81636037be1224d0d2856cdfd90b67d8eef3fc;hpb=47853d7a557bf81131512832a9e531cb04d273ca;p=libs%2Fgl.git diff --git a/shaderlib/common.glsl b/shaderlib/common.glsl index 4a816360..eb191e45 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