docs and type fixes
This commit is contained in:
parent
641953bba1
commit
4acce5525d
5 changed files with 15 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue