graphics

experiments with opengl3.2/ogles3.3 on linux and win7
git clone http://frotz.net/git/graphics.git
Log | Files | Refs

flat.glsl (249B)


      1 #version 140
      2 #extension GL_ARB_explicit_attrib_location : enable
      3 
      4 -- vertex
      5 
      6 layout (location = A_POSITION) in vec4 aPosition;
      7 
      8 void main() {
      9 	gl_Position = uMVP * aPosition;
     10 }
     11 
     12 -- fragment
     13 
     14 void main() {
     15 	gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
     16 }