mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Add WebGL1 and WebGL2 support to glow painter. Add "glow" feature to egui_web to use the glow painter there. Make winit an optional part of egui_glow
9 lines
152 B
GLSL
9 lines
152 B
GLSL
precision mediump float;
|
|
attribute vec2 a_pos;
|
|
varying vec2 v_tc;
|
|
|
|
void main() {
|
|
gl_Position = vec4(a_pos * 2. - 1., 0.0, 1.0);
|
|
v_tc = a_pos;
|
|
}
|