24 lines
1.1 KiB
XML
24 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<class name="VoxelMesherBlocky" inherits="VoxelMesher" version="3.4">
|
|
<brief_description>
|
|
Produces a mesh by batching models corresponding to each voxel value, similar to games like Minecraft or StarMade.
|
|
</brief_description>
|
|
<description>
|
|
Occluded faces are removed from the result, and some degree of ambient occlusion can be baked on the edges. Values are expected to be in the [constant VoxelBuffer.CHANNEL_TYPE] channel. Models are defined with a [VoxelLibrary], in which model indices correspond to the voxel values. Models don't have to be cubes.
|
|
</description>
|
|
<tutorials>
|
|
</tutorials>
|
|
<methods>
|
|
</methods>
|
|
<members>
|
|
<member name="library" type="VoxelLibrary" setter="set_library" getter="get_library">
|
|
</member>
|
|
<member name="occlusion_darkness" type="float" setter="set_occlusion_darkness" getter="get_occlusion_darkness" default="0.8">
|
|
</member>
|
|
<member name="occlusion_enabled" type="bool" setter="set_occlusion_enabled" getter="get_occlusion_enabled" default="true">
|
|
</member>
|
|
</members>
|
|
<constants>
|
|
</constants>
|
|
</class>
|