godot_voxel/doc/source/api/VoxelGenerator.md

1.6 KiB

VoxelGenerator

Inherits: Resource

Base class to all voxel procedural generators. If you want to define a custom one with a script, this is the class you should extend from.

Important: this engine makes heavy use of threads. Generators will run in one of them, so make sure you don't access the scene tree or other unsafe APIs from within a generator.

Methods:

Return Signature
void generate_block ( VoxelBuffer out_buffer, Vector3 origin_in_voxels, int lod )

Method Descriptions

Generates a block of voxels within the specified world area.

Generated on Jan 24, 2021