struct
VoxelChunkMeshComponent
A voxel chunk drawn from the shared voxel vertex pool (FVoxelMesh, 8 bytes a vertex). The mesh holds chunk-local voxel coordinates; the entity's transform is the chunk origin, and lodScale multiplies the voxel size so a coarser LOD of the same chunk covers the same volume with the same data. Casts into the sun's cascades; local-light shadows and translucent layers are not drawn through this path.
- Module
- SceneTypes
- Header
#include "SceneTypes/Components/VoxelChunkMeshComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
Ref<FVoxelMesh> | mesh | |
Ref<FVoxelMesh> | pendingMesh | A freshly built mesh replaces mesh the frame its upload finishes; until then the old one keeps drawing, so a remeshed chunk never blinks out. |
Ref<Texture2D> | atlas | |
float | voxelSize | Default 0.25f. |
float | lodScale | Default 1.0f. |
Vec3 | tint | Default Vec3(1.0f, 1.0f, 1.0f). |
float | roughness | Default 0.9f. |
int32_t | atlasTilesPerRow | Default 16. |
uint32_t | lightChannels | Default 1. |
bool | castShadows | Default true. |
bool | receiveShadows | Default true. |
Constructors
| Signature | Name | Description |
|---|---|---|
VoxelChunkMeshComponent() = default | VoxelChunkMeshComponent |
Function details
VoxelChunkMeshComponent
C++
VoxelChunkMeshComponent() = defaultGenerated from SceneTypes/Components/VoxelChunkMeshComponent.h via scenetypes.json · Nov 4, 2026Version 1.0.0