Skip to content

Commit

Permalink
feat(site): more cubes
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 12, 2024
1 parent 3293cbb commit 21f945b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions site/src/components/MatrixCover.astro
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
mouseX += (targetMouseX - mouseX) * 0.1;
mouseY += (targetMouseY - mouseY) * 0.1;

glMatrix.mat4.translate(modelViewMatrix, modelViewMatrix, [0, 1, -15]);
glMatrix.mat4.translate(modelViewMatrix, modelViewMatrix, [0, 1, -30]);
glMatrix.mat4.rotate(modelViewMatrix, modelViewMatrix, Math.PI / 4 + mouseY * 0.05, [1, 0, 0]);
glMatrix.mat4.rotate(modelViewMatrix, modelViewMatrix, -Math.PI / 4 + mouseX * 0.05, [0, 1, 0]);

Expand Down Expand Up @@ -375,8 +375,8 @@

// Initialize cube positions
const cubePositions = [];
for (let x = -10; x < 10; x++) {
for (let z = -10; z < 10; z++) {
for (let x = -20; x < 20; x++) {
for (let z = -20; z < 20; z++) {
cubePositions.push([x * 1.2, 0, z * 1.2]);
}
}
Expand Down

0 comments on commit 21f945b

Please sign in to comment.