polyadvent

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

main.f.glsl (281B)


      1 #include profile
      2 
      3 out vec4 frag_color;
      4 
      5 #include rogue/uniforms.glsl
      6 
      7 in shader_data {
      8 #include rogue/vars.glsl
      9 } vertex;
     10 
     11 
     12 void main() {
     13   //vec4 v4_pos = vec4(vertex.position, 1.0);
     14 
     15   //frag_color = texture(tileset, vertex.tex_coord);
     16   frag_color = vec4(vertex.color, 1.0);
     17 }
     18