Accessors
entities
- get entities(): VoxelEntity[]
opacity
- get opacity(): number
Returns number
- set opacity(value): void
Returns void
Methods
addVoxelEntity
- addVoxelEntity(setting): null | VoxelEntity
體素實體。
calculateTextureSize
- calculateTextureSize(data, pxPerMeter): {
depth: number;
height: number;
width: number;
} Parameters
data: [x: number, y: number, z: number, v: number][]
pxPerMeter: number
Returns {
depth: number;
height: number;
width: number;
}
材質尺寸。
depth: number
height: number
width: number
removeVoxelEntity
- removeVoxelEntity(entity): void
Returns void
體素模組,僅在 WebGL2 有效。