Skip to main content

Interface: ChunkMaterialHost

What the chunk material factory needs from the world: the renderer that owns the material registry, and the shading inputs every chunk material of the world reads alike.

Properties​

chunkRenderer​

• chunkRenderer: ChunkRenderer


options​

• options: Object

Type declaration​

NameType
blockTextureFilteringAtlasFilteringMode
chunkSizenumber
maxHeightnumber
subChunksnumber
swayProfileCapacitynumber
textureUnitDimensionnumber

shadingInputs​

• shadingInputs: ChunkShadingInputs

Methods​

hasCustomBlockMaterial​

▸ hasCustomBlockMaterial(id): boolean

Parameters​

NameType
idnumber

Returns​

boolean