We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fceaa75 commit c7ef0e7Copy full SHA for c7ef0e7
1 file changed
src/effects/shaders/noise.frag
@@ -2,19 +2,19 @@ uniform float page;
2
3
vec4 mainImage(const in vec4 inputColor, const in vec2 uv, const in GData gData) {
4
5
- vec2 p = uv * (SEED + page);
+ vec3 p = vec3(uv, SEED + page);
6
7
#ifdef RGB
8
9
- vec2 pR = p;
10
- vec2 pG = vec2(p.x + 1.0, p.y);
11
- vec2 pB = vec2(p.x, p.y + 1.0);
+ vec3 pR = p;
+ vec3 pG = vec3(p.x + 1.0, p.y, p.z);
+ vec3 pB = vec3(p.x, p.y + 1.0, p.z);
12
13
- vec3 noise = vec3(rand(pR), rand(pG), rand(pB));
+ vec3 noise = vec3(urand(pR), urand(pG), urand(pB));
14
15
#else
16
17
- vec3 noise = vec3(rand(p));
+ vec3 noise = vec3(urand(p));
18
19
#endif
20
0 commit comments