z-translation

This commit is contained in:
2026-01-25 13:02:17 +01:00
parent bb211f49b4
commit 2b000ec1f6

View File

@@ -73,7 +73,7 @@ const sideMaterial = new THREE.MeshStandardMaterial({
export class InstancedMino extends THREE.InstancedMesh { export class InstancedMino extends THREE.InstancedMesh {
constructor() { constructor() {
const roundedBoxGeometry = new RoundedBoxGeometry(1.03, 1.03, 1.03, 4, 0.15) const roundedBoxGeometry = new RoundedBoxGeometry(1.03, 1.03, 1.03, 4, 0.15)
roundedBoxGeometry.translate(0.5, 0.5, 0) roundedBoxGeometry.translate(0.5, 0.5, 0.5)
super(roundedBoxGeometry, undefined, 2*ROWS*COLUMNS) super(roundedBoxGeometry, undefined, 2*ROWS*COLUMNS)
this.offsets = new Uint8Array(2*this.count) this.offsets = new Uint8Array(2*this.count)
} }