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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
||||
vec2 uv = fragCoord / iResolution;
|
||||
vec2 uv = fragCoord / iResolution.xy;
|
||||
uv = vec2(uv.x, 1.0 - uv.y);
|
||||
// mixes two textures
|
||||
//fragColor = mix(texture(iChannel0, uv), texture(iChannel1, uv), 0.2);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#define PI 3.1415926538
|
||||
|
||||
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
|
||||
vec2 uv = fragCoord / iResolution;
|
||||
vec2 uv = fragCoord / iResolution.xy;
|
||||
|
||||
vec2 lines_uv = uv;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue