/usr/share/games/trackballs/shaders/line.vert is in trackballs-data 1.2.4-1.
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 | #version 130
#ifdef GL_ES
precision mediump int;
precision mediump float;
#endif
uniform mat4 proj_matrix;
uniform mat4 model_matrix;
attribute vec3 in_Position;
varying vec3 cpos;
void main(void) {
vec4 pos = vec4(in_Position.x, in_Position.y, in_Position.z, 1.);
mat4 mvp_matrix = proj_matrix * model_matrix;
gl_Position = mvp_matrix * pos;
cpos = vec4(model_matrix * pos).xyz;
}
|