polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

vertex-color.glsl (232B)


      1 
      2 #include profile
      3 
      4 in vec3 position;
      5 in vec3 normal;
      6 in vec3 color;
      7 
      8 out shader_data {
      9 #include shadervars.glsl
     10 } data_out;
     11 
     12 #include rogue/uniforms.glsl
     13 
     14 void main()
     15 {
     16 #include standard_vtxos.glsl
     17     gl_Position = mvp * v4_pos;
     18 }