balancing, visuals, clicking,s tuff

This commit is contained in:
biglyderv 2025-03-06 21:31:44 -05:00
parent cf63368549
commit 25ebe3deb3
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
3 changed files with 15 additions and 21 deletions

View file

@ -130,12 +130,14 @@ function renderThing() {
let sizes = (nGain + 1) / (nothingness + 1) * 1000000 / (cubePos.length + 30);
sizes = Math.pow(sizes, 0.3);
if (sizes > 10) sizes = 10;
if (sizes < 3) sizes = 3;
positions = MDN.createCubeData(sizes, sizes, sizes);
positions = MDN.createCubeData(1,1,1);
gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(positions), gl.STATIC_DRAW);
for (let cubie of cubePos) {
let vp = MDN.rotateYMatrix(Math.log(nothingness + 1) * cubie[2] / 10);
vp = MDN.multiplyMatrices(MDN.scaleMatrix(sizes,sizes,sizes), vp)
vp = MDN.multiplyMatrices(MDN.translateMatrix(cubie[0], cubie[1], cubie[2]), vp)
gl.uniformMatrix4fv(vpBuffer, false, new Float32Array(vp));