( (declare (location=4 shader_in ) vec4 gl_in_TexCoord0) (declare (location=2 shader_out ) vec4 gl_FragColor) (declare (temporary ) vec4 gl_FragColor) (declare (location=0 uniform ) sampler2D TextureSource) ( function main (signature void (parameters ) ( (declare (temporary ) vec4 texture2D_retval) (assign (xyzw) (var_ref texture2D_retval) (tex vec4 (var_ref TextureSource) (swiz xy (var_ref gl_in_TexCoord0) ) 0 1 () )) (declare (temporary ) vec4 vec_ctor) (assign (xyz) (var_ref vec_ctor) (swiz xyz (var_ref texture2D_retval) )) (assign (w) (var_ref vec_ctor) (expression float dot (swiz xyz (var_ref texture2D_retval) )(constant vec3 (0.212600 0.715200 0.072200)) ) ) (assign (xyzw) (var_ref gl_FragColor) (var_ref vec_ctor) ) (assign (xyzw) (var_ref gl_FragColor@4748) (var_ref gl_FragColor) ) )) ) ) GLSL shader program 937 failed to link GLSL shader program 937 info log: error: linking with uncompiled shader ( (declare (location=9 shader_in ) vec4 gl_MultiTexCoord1) (declare (location=8 shader_in ) vec4 gl_MultiTexCoord0) (declare (location=0 shader_in ) vec4 gl_Vertex) (declare (location=14 shader_out ) vec4 gl_BackSecondaryColor) (declare (location=2 shader_out ) vec4 gl_FrontSecondaryColor) (declare (location=13 shader_out ) vec4 gl_BackColor) (declare (location=1 shader_out ) vec4 gl_FrontColor) (declare (location=16 shader_out ) vec4 gl_ClipVertex) (declare (location=3 shader_out ) float gl_FogFragCoord) (declare (location=4 shader_out ) (array vec4 0) gl_TexCoord) (declare (location=12 shader_out ) float gl_PointSize) (declare (location=0 shader_out ) vec4 gl_Position) (declare (uniform ) (array mat4 8) gl_TextureMatrixInverseTranspose) (declare (uniform ) (array mat4 8) gl_TextureMatrixTranspose) (declare (uniform ) mat4 gl_ModelViewProjectionMatrixInverseTranspose) (declare (uniform ) mat4 gl_ProjectionMatrixInverseTranspose) (declare (uniform ) mat4 gl_ModelViewMatrixInverseTranspose) (declare (uniform ) mat4 gl_ModelViewProjectionMatrixTranspose) (declare (uniform ) mat4 gl_ProjectionMatrixTranspose) (declare (uniform ) mat4 gl_ModelViewMatrixTranspose) (declare (uniform ) mat4 gl_ModelViewProjectionMatrix) (declare (uniform ) vec4 CameraPosition) (declare (uniform ) vec4 OverrideColor) (declare (shader_out ) vec3 wPos) (declare (shader_out ) vec3 wNormal) (declare (shader_out ) vec3 wEyeDir) (declare (shader_out ) vec3 LocalLighting) (declare (shader_out ) vec3 GlobalLighting) ( function GetCoords (signature void (parameters (declare (out ) vec3 mPos) (declare (out ) vec3 wPos) (declare (out ) vec4 hPos) (declare (out ) vec3 Normal) (declare (out ) vec3 Tangent) ) ( )) ) ( function GetLocalDiffuseLighting (signature vec3 (parameters (declare (in ) vec3 pos) (declare (in ) vec3 normal) ) ( )) ) ( function GetDiffuseLighting (signature vec3 (parameters (declare (in ) vec3 pos) ) ( )) ) ( function GetSpecularLighting (signature vec3 (parameters (declare (in ) vec3 Normal) (declare (in ) vec3 EyeDir) (declare (in ) float specPower) ) ( )) ) ( function main (signature void (parameters ) ( (declare () vec3 tangent) (declare () vec3 mPos) (declare (temporary ) vec4 ftransform_retval) (call ftransform (var_ref ftransform_retval) ()) (assign (xyzw) (var_ref gl_Position) (var_ref ftransform_retval) ) (assign (xyzw) (array_ref (var_ref gl_TexCoord) (constant int (0)) ) (constant vec4 (0.000000 0.000000 0.000000 0.000000)) ) (assign (xyzw) (array_ref (var_ref gl_TexCoord) (constant int (1)) ) (constant vec4 (0.000000 0.000000 0.000000 0.000000)) ) (assign (xyz) (var_ref wPos) (constant vec3 (0.000000 0.000000 0.000000)) ) (assign (xyz) (var_ref wNormal) (constant vec3 (0.000000 0.000000 0.000000)) ) (assign (xyz) (var_ref wEyeDir) (constant vec3 (0.000000 0.000000 0.000000)) ) (assign (xyz) (var_ref LocalLighting) (constant vec3 (0.000000 0.000000 0.000000)) ) (assign (xyz) (var_ref GlobalLighting) (constant vec3 (0.000000 0.000000 0.000000)) ) (call GetCoords ((var_ref mPos) (var_ref wPos) (var_ref gl_Position) (var_ref wNormal) (var_ref tangent) )) (declare (temporary ) vec3 normalize_retval) (call normalize (var_ref normalize_retval) ((expression vec3 + (swiz xyz (var_ref CameraPosition) )(expression vec3 neg (var_ref wPos) ) ) )) (assign (xyz) (var_ref wEyeDir) (var_ref normalize_retval) ) (assign (xyzw) (array_ref (var_ref gl_TexCoord) (constant int (0)) ) (var_ref gl_MultiTexCoord0) ) (assign (zw) (array_ref (var_ref gl_TexCoord) (constant int (0)) ) (swiz xy (var_ref gl_MultiTexCoord1) )) (declare (temporary ) vec3 GetLocalDiffuseLighting_retval) (call GetLocalDiffuseLighting (var_ref GetLocalDiffuseLighting_retval) ((var_ref wPos) (var_ref wNormal) )) (declare (temporary ) vec3 clamp_retval) (call clamp (var_ref clamp_retval) ((var_ref GetLocalDiffuseLighting_retval) (constant vec3 (0.000000 0.000000 0.000000)) (constant vec3 (1.000000 1.000000 1.000000)) )) (assign (xyz) (var_ref LocalLighting) (var_ref clamp_retval) ) (declare (temporary ) vec3 GetDiffuseLighting_retval) (call GetDiffuseLighting (var_ref GetDiffuseLighting_retval) ((var_ref wNormal) )) (declare (temporary ) vec3 clamp_retval@4749) (call clamp (var_ref clamp_retval@4749) ((var_ref GetDiffuseLighting_retval) (constant vec3 (0.000000 0.000000 0.000000)) (constant vec3 (1.000000 1.000000 1.000000)) )) (assign (xyz) (var_ref GlobalLighting) (var_ref clamp_retval@4749) ) (assign (w) (var_ref gl_FrontColor) (constant float (1.000000)) ) (assign (xyzw) (var_ref gl_BackColor) (constant vec4 (1.000000 1.000000 1.000000 1.000000)) ) (assign (xyz) (var_ref gl_FrontColor) (swiz xyz (var_ref OverrideColor) )) )) ) ( function ftransform (signature vec4 (parameters ) ( )) ) ( function normalize (signature vec3 (parameters (declare (in ) vec3 x) ) ( )) ) ( function clamp (signature vec3 (parameters (declare (in ) vec3 x) (declare (in ) vec3 minVal) (declare (in ) vec3 maxVal) ) ( )) ) )