/usr/share/codeblocks/lexers/lexer_glsl.sample is in codeblocks-common 13.12-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* a fragment program */
#pragma optimize(on)
uniform float T; //threshold
uniform sampler2D sampler;
const vec4 fcolor=vec4(1, 1, 1, 0);
const vec4 bcolor=vec4(0, 0, 0, 0);
void main (void)
{
float I = texture2D(sampler, gl_TexCoord[0].xy ).r;
if (I>T)
gl_FragColor = fcolor;
else
gl_FragColor = bcolor;
}
|