struct
VdbVolumeComponent
A sparse volume from a NanoVDB file — smoke, fire, a cloud — ray-marched over the lit scene after the volumetric fog (FVdbVolume, the VDB pass). The grid sits in the entity's space: its voxel coordinates map to world through the file's own voxel size and origin, then through the entity transform. Reflected, so the Details panel edits every field with zero editor code.
- Module
- Game
- Header
#include "Game/Components/VdbVolumeComponent.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Properties
| Type | Name | Description |
|---|---|---|
bool | enabled | Default true. |
std::string | vdbPath | An uncompressed .nvdb file (NanoVDB; nanovdb_convert turns an OpenVDB .vdb into one). |
std::string | densityGrid | Grid names to read. A missing density grid falls to the file's first fog-volume grid; a missing temperature grid means no emission. Default "density". |
std::string | temperatureGrid | Default "temperature". |
float | densityScale | Extinction per unit of stored density per world unit. Higher = thicker. Default 1.0f. |
Vec3 | albedo | Single-scattering albedo: the tint light picks up passing through. Default Vec3(0.9f, 0.9f, 0.9f). |
float | anisotropy | Henyey-Greenstein anisotropy: > 0 scatters forward (bright rim when looking toward the sun), 0 is isotropic. Default 0.2f. |
float | temperatureScale | Stored temperature x this = Kelvin. 1 for grids already in Kelvin; the default reads a normalised 0..2 grid as up to 2000 K. Default 1000.0f. |
float | emissionStrength | Blackbody emission multiplier; 0 turns the fire off and leaves the smoke. Default 1.0f. |
int32_t | maxResolution | Longest axis of the dense brick the grid is resampled into. Higher keeps finer wisps and costs memory (4 bytes a voxel). Default 128. |
Constructors
| Signature | Name | Description |
|---|---|---|
VdbVolumeComponent() = default | VdbVolumeComponent |
Function details
VdbVolumeComponent
C++
VdbVolumeComponent() = defaultGenerated from Game/Components/VdbVolumeComponent.h via game.json · Nov 5, 2026Version 1.0.0