/usr/src/castle-game-engine-5.0.0/opengl/glsl/rectangle.vs is in castle-game-engine-src 5.0.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 | attribute vec2 vertex;
uniform vec2 viewport_size;
/* Simple GLSL shader to draw 2D rectangle. */
void main(void)
{
gl_Position = vec4(vertex * 2.0 / viewport_size - vec2(1.0), 0.0, 1.0);
}
|