rescale
This commit is contained in:
parent
24d7e4675b
commit
e0d2791458
|
@ -6,7 +6,7 @@ var gl = canvas.getContext("webgl", {
|
||||||
});
|
});
|
||||||
|
|
||||||
function resizeCanvas() {
|
function resizeCanvas() {
|
||||||
const scl = (p) => Math.trunc(p / 8);
|
const scl = (p) => Math.trunc(p / 4);
|
||||||
|
|
||||||
var width = scl(gl.canvas.clientWidth);
|
var width = scl(gl.canvas.clientWidth);
|
||||||
var height = scl(gl.canvas.clientHeight);
|
var height = scl(gl.canvas.clientHeight);
|
||||||
|
|
|
@ -63,7 +63,7 @@ void main() {
|
||||||
|
|
||||||
float second = floor(u_time * 1.1);
|
float second = floor(u_time * 1.1);
|
||||||
float noise = snoise(vec2(herescaled.x * herescaled.y, second));
|
float noise = snoise(vec2(herescaled.x * herescaled.y, second));
|
||||||
float final = (distf + noise) / 2.0;
|
float final = distf - noise * 0.8;
|
||||||
|
|
||||||
gl_FragColor = mix(lighter, darker, noise);
|
gl_FragColor = mix(lighter, darker, final);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue