medfall

A super great game engine
Log | Files | Refs

ui.glsl (279B)


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