mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
* Added shaders on GLSL 1.2 - Used `glium::program` to create shaders - Moved shaders code to its own sources and include it as str - Added shaders implementation on GLSL which allows run egui on old hardware (Raspberry Pi 1/zero in game again) * Moved webgl shaders code to sources in `shader` subdir * Added GLSL ES shaders to glium backend to support OpenGL ES * Described changes related to GLSL versions support
13 lines
287 B
GLSL
13 lines
287 B
GLSL
#version 140
|
|
|
|
uniform sampler2D u_sampler;
|
|
in vec4 v_rgba;
|
|
in vec2 v_tc;
|
|
out vec4 f_color;
|
|
|
|
void main() {
|
|
// The texture sampler is sRGB aware, and glium already expects linear rgba output
|
|
// so no need for any sRGB conversions here:
|
|
f_color = v_rgba * texture(u_sampler, v_tc);
|
|
}
|