From 90fb30cf3a92690178e5ad39095f604c2bc50afa Mon Sep 17 00:00:00 2001 From: pryazha Date: Fri, 6 Jun 2025 10:30:01 +0500 Subject: trying to add windows support, also a lot of changes, some ui modifications --- data/shaders/grid.frag | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 data/shaders/grid.frag (limited to 'data/shaders/grid.frag') diff --git a/data/shaders/grid.frag b/data/shaders/grid.frag new file mode 100644 index 0000000..2bfdd7a --- /dev/null +++ b/data/shaders/grid.frag @@ -0,0 +1,19 @@ +#version 330 core + +in VSOUT { + vec2 texcoords; +} vsout; + +out vec4 frag_color; + +uniform sampler2D texture0; + +void main(void) +{ + const float gamma = 2.2; + + vec3 color = vec3(texture(texture0, vsout.texcoords)); + color = pow(color, vec3(1.0/gamma)); + + frag_color = vec4(color, 0.5); +} -- cgit v1.2.3-70-g09d2