docs and type fixes

This commit is contained in:
Rakarake 2026-03-15 14:49:19 +01:00
parent 641953bba1
commit 4acce5525d
5 changed files with 15 additions and 8 deletions

View file

@ -68,7 +68,7 @@ float limit(float val, float min, float max) {
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 screen_uv = gl_FragCoord.xy / iResolution;
vec2 screen_uv = gl_FragCoord.xy / iResolution.xy;
// We'll make origin in the top-left.
screen_uv.y = 1.0 - screen_uv.y;
screen_uv.x *= iResolution.x / iResolution.y;