openCom-Companion/sbapp/kivymd/data/glsl/elevation/main.frag

11 lines
184 B
GLSL
Raw Normal View History

2022-10-08 17:17:59 +02:00
vec2 gfc(in vec4 fc) {
vec2 canvas_pos = resolution.zw;
vec2 uv = fc.xy;
uv.y -= canvas_pos.y;
return uv;
}
void main(void) {
mainImage(gl_FragColor, gfc(gl_FragCoord));
}