@divnotes/dn-voxel-loader - v0.1.10 / dn-voxel-loader / VoxelData
Interface: VoxelData<>
dn-voxel-loader.VoxelData
Table of contents
Properties
Properties
materials
• materials: VoxelMaterial
[]
Array of materials defined in the file (index corresponds to material ID - 1, e.g., materials[0] is ID 1).
Defined in
octree
• octree: SparseOctree
The sparse octree containing voxel data.
Defined in
palette
• palette: RGBA
[]
The color palette (array of 257 RGBA objects, index 0 is empty).
Defined in
size
• size: VoxelSize
The dimensions of the model.