flatbox_egui 0.1.0

Egui binding for Flatbox engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#version 450

uniform sampler2D u_sampler;

in vec4 v_rgba;
in vec2 v_tc;
out vec4 f_color;
// a dirty hack applied to support webGL2
#define gl_FragColor f_color
#define texture2D texture

void main() {
  // The texture sampler is sRGB aware, and OpenGL already expects linear rgba
  // output so no need for any sRGB conversions here:
  gl_FragColor = v_rgba * texture2D(u_sampler, v_tc);
}