weird: added another iteration of ikeda games; utils: added a perlin noise-like noise function
This commit is contained in:
@@ -3,3 +3,9 @@ float random(vec2 st) {
|
||||
vec2(12.9898,78.233)))*
|
||||
43758.5453123);
|
||||
}
|
||||
|
||||
float noise(float x) {
|
||||
float i = floor(x);
|
||||
float f = fract(x);
|
||||
return mix(rand(i), rand(i + 1.0), smoothstep(0.,1.,f));
|
||||
}
|
||||
|
Reference in New Issue
Block a user