generated from AfonsoCMSousa/CPP-Template
Feat: Better noise and position of effect.
This commit is contained in:
@@ -75,10 +75,10 @@ void main() {
|
||||
vec2 st = gl_FragCoord.xy / u_resolution; // Normalize coordinates
|
||||
st += 13.0 + (u_oscilator * 0.001); // Center the coordinates
|
||||
|
||||
vec2 pos = st * (3.0);
|
||||
vec2 pos = st * (2.2);
|
||||
|
||||
pos = rotate2d(perlinNoise(pos)) * pos;
|
||||
pos -= (u_time * (float(u_oscilator) * 0.5) * 0.2);
|
||||
pos -= (u_time * (float(u_oscilator) * 0.5) * 0.1);
|
||||
|
||||
float n = perlinNoise(pos);
|
||||
vec3 color;
|
||||
|
||||
Reference in New Issue
Block a user