vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

frag_for_rects.glsl (307B)


      1 #version 430 core
      2 
      3 layout(location = 0) in vec2 fragment_texture_coordinate;
      4 layout(location = 1) in vec4 fragment_colour;
      5 
      6 layout(location = 0) out vec4 colour;
      7 
      8 layout(location = 3) uniform sampler2D u_texslot;
      9 
     10 void main()
     11 {
     12 	colour = fragment_colour * texture(u_texslot, fragment_texture_coordinate);
     13 }