VoxelMesherCubes¶
Inherits: VoxelMesher
Properties:¶
Type | Name | Default |
---|---|---|
int |
color_mode | 0 |
bool |
greedy_meshing_enabled | true |
Material |
opaque_material | |
VoxelColorPalette |
palette | |
Material |
transparent_material |
Methods:¶
Return | Signature |
---|---|
Mesh | generate_mesh_from_image ( Image image, float voxel_size ) static |
void | set_material_by_index ( int id, Material material ) |
Enumerations:¶
enum Materials:
- MATERIAL_OPAQUE = 0
- MATERIAL_TRANSPARENT = 1
- MATERIAL_COUNT = 2
enum ColorMode:
- COLOR_RAW = 0
- COLOR_MESHER_PALETTE = 1
- COLOR_SHADER_PALETTE = 2
Property Descriptions¶
-
int color_mode = 0
-
bool greedy_meshing_enabled = true
-
Material opaque_material
-
VoxelColorPalette palette
-
Material transparent_material
Method Descriptions¶
Generated on Sep 12, 2023