polyadvent

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

grid.v.glsl (329B)


      1 
      2 #include profile
      3 
      4 in vec3 position;
      5 in vec2 tex_coord;
      6 in vec3 normal;
      7 
      8 #include rogue/uniforms.glsl
      9 
     10 uniform int is_white;
     11 
     12 out shader_data {
     13 #include rogue/vars.glsl
     14 } data_out;
     15 
     16 void main()
     17 {
     18 	vec3 color = vec3(tex_coord.xy, 1.0);
     19 	data_out.tex_coord = tex_coord;
     20 #include standard_vtxos.glsl
     21   gl_Position = mvp * v4_pos;
     22 }