This commit is contained in:
minish 2025-09-10 03:14:13 -04:00
parent 24d7e4675b
commit e0d2791458
Signed by: min
SSH Key Fingerprint: SHA256:mf+pUTmK92Y57BuCjlkBdd82LqztTfDCQIUp0fCKABc
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
} }