balancing, visuals, clicking,s tuff
This commit is contained in:
parent
cf63368549
commit
25ebe3deb3
3 changed files with 15 additions and 21 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue