Class BlockModelFactory
🏭 Constructors
constructor
ts
new BlockModelFactory(textureManager: TextureManager, option: Object= {}): BlockModelFactory
Parameters
- textureManager:
TextureManager
- option:
Object
Return Type
BlockModelFactory
Defined in: packages/model/block.ts:167
🏷️ Properties
cachedMaterial
ts
cachedMaterial: Record<string, Material> = {}
Defined in: packages/model/block.ts:165
option
ts
option: Object = {}
Defined in: packages/model/block.ts:167
textureManager
ts
textureManager: TextureManager
Defined in: packages/model/block.ts:167
TRANSPARENT_MATERIAL
ts
TRANSPARENT_MATERIAL: MeshBasicMaterial = ...
Defined in: packages/model/block.ts:163
🔧 Methods
getObject
ts
getObject(model: Resolved, options: Object= {}, fix: number= 0.001): BlockModelObject
Get threejs Object3D
for that block model.
Parameters
- model:
Resolved
- options:
Object
- fix:
number
Return Type
BlockModelObject
Defined in: packages/model/block.ts:172