shit.glsl (279B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #ifdef VERTEX_SHADER in vec3 position; in vec3 colour; out vec3 frag_colour; void main() { gl_Position = vec4( position, 1.0 ); frag_colour = colour; } #else in vec3 frag_colour; out vec4 screen_colour; void main() { screen_colour = vec4( frag_colour, 1.0 ); } #endif |