-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, new materials are created for every single block instance. It might be more efficient to create them once up front.
Something like...
import * as THREE from 'three';
export const materials = [
new THREE.MeshBasicMaterial({ color: 0x00ff00 }),
new THREE.MeshBasicMaterial({ color: 0xff0000 }),
new THREE.MeshBasicMaterial({ color: 0x0000ff }),
]Make sure not to dispose the materials array
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request