medfall

A super great game engine
Log | Files | Refs

wireframe.glsl (259B)


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