godot_voxel/doc/source/api/VoxelLibrary.md
2021-05-31 17:23:29 +01: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 May 31, 2021