z-translation
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user