29 lines
982 B
XML
29 lines
982 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="VoxelGenerator" inherits="Resource" version="3.2">
|
|
<brief_description>
|
|
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.
|
|
</brief_description>
|
|
<description>
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
<method name="generate_block">
|
|
<return type="void">
|
|
</return>
|
|
<argument index="0" name="out_buffer" type="VoxelBuffer">
|
|
</argument>
|
|
<argument index="1" name="origin_in_voxels" type="Vector3">
|
|
</argument>
|
|
<argument index="2" name="lod" type="int">
|
|
</argument>
|
|
<description>
|
|
Generates a block of voxels within the specified world area.
|
|
</description>
|
|
</method>
|
|
</methods>
|
|
<constants>
|
|
</constants>
|
|
</class>
|