godot_voxel/doc/source/api/VoxelLibrary.md
Marc Gilleron d5a69003c3 Add missing classes and run doctool (doctool has issues though)
VoxelGeneratorHeightmap.height_range is wrong in the doc.
VoxelTool lost all default values in doc.
These are likely Godot bugs...
2021-11-06 02:04:16 +00:00

3.7 KiB

VoxelLibrary

Inherits: Resource

Properties:

Type Name Default
int atlas_size 16
bool bake_tangents true
int voxel_count 0

Methods:

Return Signature
void bake ( )
Voxel create_voxel ( int id, String name )
Voxel get_voxel ( int id )
Voxel get_voxel_by_name ( String name )
int get_voxel_index_from_name ( String name ) const

Constants:

  • MAX_VOXEL_TYPES = 65536

Property Descriptions

  • int atlas_size = 16

  • bool bake_tangents = true

Enable this option if you need normal mapping on your voxels. If you don't need it, disabling can reduce memory usage and give a small speed boost.

  • int voxel_count = 0

Method Descriptions

Generated on Nov 06, 2021