/usr/src/castle-game-engine-5.2.0/opengl/glsl/image.fs is in castle-game-engine-src 5.2.0-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 20 21 22 23 24 25 26 27 28 | #ifdef GL_ES
precision mediump float;
#endif
varying vec2 tex_coord_frag;
uniform sampler2D texture;
#ifdef COLOR_UNIFORM
uniform vec4 color;
#endif
void main(void)
{
#ifdef COLOR_UNIFORM
gl_FragColor = color;
#ifdef TEXTURE_HAS_ONLY_ALPHA
gl_FragColor.a *= texture2D(texture, tex_coord_frag).a;
#else
gl_FragColor *= texture2D(texture, tex_coord_frag);
#endif
#else
gl_FragColor = texture2D(texture, tex_coord_frag);
#endif
#ifdef ALPHA_TEST
if (gl_FragColor.a < 0.5) discard;
#endif
}
|