ref: 4161ae98a0bd95edcd9a8f48c5daf019dd7164bb misc/reflex-gl-demo/dat/vertex.glsl -rw-r--r-- 168 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
#version 410

in vec3 vp;
uniform mat4 proj;
out vec3 color;

void main() {
  gl_Position = proj * vec4(vp, 1.0);
  color = vec3((vp.x + 6)/12, (vp.y + 10)/20, 0.5);
}