5 void main() { gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; }
8 /* From page 38 (page 44 of the PDF) of the GLSL 1.10 spec:
10 * "A shader can redefine built-in functions. If a built-in function is
11 * redeclared in a shader (i.e. a prototype is visible) before a call to
12 * it, then the linker will only attempt to resolve that call within the
13 * set shaders that are linked with it."
24 /* The call to abs in func should bind to the built-in version, but
25 * the call to abs here, which follows the override, should not.
27 gl_FragColor = (func(-1.0) == abs(-1.0))
28 ? vec4(1.0, 0.0, 0.0, 1.0)
29 : vec4(0.0, 1.0, 0.0, 1.0);
40 probe all rgb 0.0 1.0 0.0