Overview of Voxel Generators
masterA VoxelGenerator is a procedural source used to generate voxels for specific areas or single positions. They are lightweight alternatives to storing massive voxel datasets.
Key Concepts:
- Execution: Generators run on the CPU and primarily work with blocks of voxels (e.g., 16x16x16).
- Channels: Data is split into channels. Use the
TYPEchannel (0) for blocky voxels (like Minecraft) and theSDFchannel (1) for smooth terrain/distance fields. - Thread Safety: The
generate_blockmethod is thread-safe and can be called by multiple threads simultaneously. - Default Behavior: If no generator is assigned to a volume, blocks are filled with air by default.