z-translation
This commit is contained in:
@@ -73,7 +73,7 @@ const sideMaterial = new THREE.MeshStandardMaterial({
|
||||
export class InstancedMino extends THREE.InstancedMesh {
|
||||
constructor() {
|
||||
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)
|
||||
this.offsets = new Uint8Array(2*this.count)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user