GLSL source for fragment shader 68: #version 130 precision mediump int; precision highp float; #define DEFINE_GL_FRAGCOLOR 1 #define FXAA_GLSL_130 1 #define ATTRIBUTE in #define VARYING in #define VARYING_FLAT flat in #define texture2D texture #define textureCube texture #define texture2DLod textureLod #define shadow2D(a,b) vec2(texture(a,b)) #define HAS_DIFFUSE_LOOKUP 0 /** * @file glowExtractF.glsl * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2007, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License only. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA * $/LicenseInfo$ */ #extension GL_ARB_texture_rectangle : enable #ifdef DEFINE_GL_FRAGCOLOR out vec4 frag_color; #else #define frag_color gl_FragColor #endif uniform sampler2DRect diffuseMap; uniform float minLuminance; uniform float maxExtractAlpha; uniform vec3 lumWeights; uniform vec3 warmthWeights; uniform float warmthAmount; VARYING vec2 vary_texcoord0; void main() { vec4 col = texture2DRect(diffuseMap, vary_texcoord0.xy); /// CALCULATING LUMINANCE (Using NTSC lum weights) /// http://en.wikipedia.org/wiki/Luma_%28video2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(842) : loadShaderFile: GLSL Compilation Error: (0) in effects/glowExtractF.glsl 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(515) : dumpObjectLog: 0:39(1): error: syntax error, unexpected EXTENSION, expecting $end 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(869) : loadShaderFile: #version 130 2013-11-14T00:40:35Z INFO: llrender/llshadermgr.cpp(569) : loadShaderFile: Loading file: shaders/class1/effects/glowExtractF.glsl (Want class 1) 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(842) : loadShaderFile: GLSL Compilation Error: (0) in effects/glowExtractF.glsl 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(515) : dumpObjectLog: 0:39(1): error: syntax error, unexpected EXTENSION, expecting $end 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(869) : loadShaderFile: #version 130 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(905) : loadShaderFile: Failed to load effects/glowExtractF.glsl 2013-11-14T00:40:35Z WARNING: llrender/llglslshader.cpp(432) : createShader: Failed to link shader: Glow Extract Shader (Post) 2013-11-14T00:40:35Z WARNING: llrender/llglslshader.cpp(437) : createShader: Failed to link using shader level 1 trying again using shader level 0 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(576) : loadShaderFile: GLSL Shader file not found: effects/glowExtractV.glsl 2013-11-14T00:40:35Z WARNING: llrender/llshadermgr.cpp(576) : loadShaderFile: GLSL Shader file not found: effects/glowExtractF.glsl 2013-11-14T00:40:35Z WARNING: llrender/llglslshader.cpp(432) : createShader: Failed to link shader: Glow Extract Shader (Post) 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(940) : clear: Clearing dynamic bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(168) : clear: Clearing standard bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(168) : clear: Clearing standard bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(168) : clear: Clearing standard bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(107) : addstandard: Adding standard bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(940) : clear: Clearing dynamic bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(168) : clear: Clearing standard bumpmaps. 2013-11-14T00:40:35Z INFO: newview/lldrawpoolbump.cpp(168) : clear: Clearing standard bumpmaps. 2013-11-14T00:40:35Z INFO: newview/llviewershadermgr.cpp(438) : setShaders: ~~~~~~~~~~~~~~~~~~ Loading Shaders: ~~~~~~~~~~~~~~~~~~ 2013-11-14T00:40:35Z INFO: newview/llviewershadermgr.cpp(439) : setShaders: Using GLSL 1.30 2013-11-14T00:40:35Z INFO: llrender/llshadermgr.cpp(569) : loadShaderFile: Loading file: shaders/class1/windlight/atmosphericsVarsV.glsl (Want class 1) %29 float lum = smoothstep(minLuminance, minLuminance+1.0, dot(col.rgb, lumWeights ) ); float warmth = smoothstep(minLuminance, minLuminance+1.0, max(col.r * warmthWeights.r, max(col.g * warmthWeights.g, col.b * warmthWeights.b)) ); frag_color.rgb = col.rgb; frag_color.a = max(col.a, mix(lum, warmth, warmthAmount) * maxExtractAlpha); } GLSL shader 68 failed to compile. GLSL shader 68 info log: 0:39(1): error: syntax error, unexpected EXTENSION, expecting $end