egui_web 0.17.0

Bindings for compiling egui code to WASM for a web page
1
2
3
4
5
6
7
8
9
10
11
12
13
precision mediump float;
uniform sampler2D u_sampler;
varying vec4 v_rgba;
varying vec2 v_tc;

void main() {
    // The texture is set up with `SRGB8_ALPHA8`, so no need to decode here!
    vec4 texture_rgba = texture2D(u_sampler, v_tc);

    // Multiply vertex color with texture color (in linear space).
    // Linear color is written and blended in Framebuffer and converted to sRGB later
    gl_FragColor = v_rgba * texture_rgba;
}