add layer counter, graphics stuff

This commit is contained in:
biglyderv 2025-03-12 20:54:20 -04:00
parent f718e8d41f
commit aa9674718f
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
4 changed files with 15 additions and 7 deletions

View file

@ -1,6 +1,6 @@
'use strict';
var ratio = 1, width = 1, height = 1;
var ratio = 1, width = 1, height = 1, frames = 0;
var canvas, gl, positionAttributeLocation, positionBuffer, matBuffer, vpBuffer, sizeBuffer, distBuffer, fgBuffer;
function createShader(gl, type, source) {
@ -138,8 +138,9 @@ function renderThing() {
let vp = MDN.rotateYMatrix(Math.log(nothingness + 1) * cubie[2] / 10);
let bonus = 1 + counts.doNothing / (ii * .02 + 2);
bonus = bonus ** (1 / 3);
bonus = bonus ** (1 / 3)
vp = MDN.multiplyMatrices(MDN.rotateXMatrix(frames * 0.01),vp);
vp = MDN.multiplyMatrices(MDN.scaleMatrix(sizes * bonus, sizes * bonus, sizes * bonus), vp)
vp = MDN.multiplyMatrices(MDN.translateMatrix(cubie[0], cubie[1], cubie[2]), vp)