Rework website with bulma instead of bootstrap #6
|
@ -230,7 +230,11 @@ class Renderer {
|
||||||
this.rotation += (this.dTime / 1000.0) * ROTATION_SPEED;
|
this.rotation += (this.dTime / 1000.0) * ROTATION_SPEED;
|
||||||
|
|
||||||
const modelViewMatrix = mat4.create();
|
const modelViewMatrix = mat4.create();
|
||||||
mat4.translate(modelViewMatrix, modelViewMatrix, [0.0, 0.025, -1.2]);
|
mat4.translate(modelViewMatrix, modelViewMatrix, [
|
||||||
|
0.0,
|
||||||
|
0.025,
|
||||||
|
-((this.analyser.frequencyBinCount / gl.canvas.clientWidth) * 3),
|
||||||
|
]);
|
||||||
mat4.rotateX(modelViewMatrix, modelViewMatrix, Math.PI / 16);
|
mat4.rotateX(modelViewMatrix, modelViewMatrix, Math.PI / 16);
|
||||||
mat4.rotateY(modelViewMatrix, modelViewMatrix, this.rotation);
|
mat4.rotateY(modelViewMatrix, modelViewMatrix, this.rotation);
|
||||||
mat4.translate(modelViewMatrix, modelViewMatrix, [-1.0, 0.0, 0.0]);
|
mat4.translate(modelViewMatrix, modelViewMatrix, [-1.0, 0.0, 0.0]);
|
||||||
|
|
Reference in a new issue