1.3 KiB
1.3 KiB
VoxelMesherBlocky
Inherits: VoxelMesher
Produces a mesh by batching models corresponding to each voxel value, similar to games like Minecraft or StarMade.
Description:
Occluded faces are removed from the result, and some degree of ambient occlusion can be baked on the edges. Values are expected to be in the constant VoxelBuffer.CHANNEL_TYPE channel. Models are defined with a VoxelLibrary, in which model indices correspond to the voxel values. Models don't have to be cubes.
Properties:
Type | Name | Default |
---|---|---|
VoxelLibrary |
library | |
float |
occlusion_darkness | 0.8 |
bool |
occlusion_enabled | true |
Property Descriptions
-
VoxelLibrary library
-
float occlusion_darkness = 0.8
-
bool occlusion_enabled = true
Generated on May 31, 2021