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

TypeNameDescription
boolenabledDefault true.
std::stringvdbPathAn uncompressed .nvdb file (NanoVDB; nanovdb_convert turns an OpenVDB .vdb into one).
std::stringdensityGridGrid 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::stringtemperatureGridDefault "temperature".
floatdensityScaleExtinction per unit of stored density per world unit. Higher = thicker. Default 1.0f.
Vec3albedoSingle-scattering albedo: the tint light picks up passing through. Default Vec3(0.9f, 0.9f, 0.9f).
floatanisotropyHenyey-Greenstein anisotropy: > 0 scatters forward (bright rim when looking toward the sun), 0 is isotropic. Default 0.2f.
floattemperatureScaleStored 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.
floatemissionStrengthBlackbody emission multiplier; 0 turns the fire off and leaves the smoke. Default 1.0f.
int32_tmaxResolutionLongest axis of the dense brick the grid is resampled into. Higher keeps finer wisps and costs memory (4 bytes a voxel). Default 128.

Constructors

SignatureNameDescription
VdbVolumeComponent() = defaultVdbVolumeComponent

Function details

VdbVolumeComponent

C++
VdbVolumeComponent() = default
Generated from Game/Components/VdbVolumeComponent.h via game.json · Nov 5, 2026Version 1.0.0