add layer counter, graphics stuff
This commit is contained in:
parent
f718e8d41f
commit
aa9674718f
4 changed files with 15 additions and 7 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue