EntropyCanvas::ProbeVolumeComponent
EntropyCanvas::ProbeVolumeComponent
Section titled “EntropyCanvas::ProbeVolumeComponent”Probe volume component for spherical gaussian global illumination. More…
#include <GlobalIllumination.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| glm::vec3 | worldToProbeUVW(const Transform & transform, const glm::vec3 & worldPos) const Get probe grid coordinates from world position. |
| WorldBounds | worldBounds(const Transform & transform) const Get the world-space AABB (requires Transform). |
| glm::vec3 | probePosition(const Transform & transform, uint32_t probeIndex) const Get probe world position by index. |
| uint32_t | probeCount() const Get total probe count. |
| ENTROPY_REGISTER_TYPE(ProbeVolumeComponent ) | |
| ENTROPY_FIELD_EXTENSION(uint32_t , captureResolution ) | |
| ENTROPY_FIELD_EXTENSION(bool , realtime ) | |
| ENTROPY_FIELD_EXTENSION(uint32_t , fittingSamples ) | |
| ENTROPY_FIELD(glm::vec3 , extents ) | |
| ENTROPY_FIELD(glm::ivec3 , resolution ) | |
| ENTROPY_FIELD(ProbeUpdatePriority , updatePriority ) | |
| ENTROPY_FIELD(SGLobeConfig , lobeConfig ) |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| uint32_t | probeAtlasIndex |
| bool | needsCapture |
Detailed Description
Section titled “Detailed Description”struct EntropyCanvas::ProbeVolumeComponent;Probe volume component for spherical gaussian global illumination.
Defines a region where light probes are placed in a 3D grid. Each probe captures environment radiance and fits to SG lobes.
Usage:
- Place entity with Transform at volume center
- Set extents to define bounding box size
- Set resolution for probe density
- ProbeVolumeService handles capture, fitting, and GPU upload
Public Functions Documentation
Section titled “Public Functions Documentation”function worldToProbeUVW
Section titled “function worldToProbeUVW”inline glm::vec3 worldToProbeUVW( const Transform & transform, const glm::vec3 & worldPos) constGet probe grid coordinates from world position.
Returns fractional coordinates for interpolation.
function worldBounds
Section titled “function worldBounds”inline WorldBounds worldBounds( const Transform & transform) constGet the world-space AABB (requires Transform).
function probePosition
Section titled “function probePosition”inline glm::vec3 probePosition( const Transform & transform, uint32_t probeIndex) constGet probe world position by index.
function probeCount
Section titled “function probeCount”inline uint32_t probeCount() constGet total probe count.
function ENTROPY_REGISTER_TYPE
Section titled “function ENTROPY_REGISTER_TYPE”ENTROPY_REGISTER_TYPE( ProbeVolumeComponent)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( uint32_t , captureResolution)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( bool , realtime)function ENTROPY_FIELD_EXTENSION
Section titled “function ENTROPY_FIELD_EXTENSION”ENTROPY_FIELD_EXTENSION( uint32_t , fittingSamples)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( glm::vec3 , extents)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( glm::ivec3 , resolution)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( ProbeUpdatePriority , updatePriority)function ENTROPY_FIELD
Section titled “function ENTROPY_FIELD”ENTROPY_FIELD( SGLobeConfig , lobeConfig)Public Attributes Documentation
Section titled “Public Attributes Documentation”variable probeAtlasIndex
Section titled “variable probeAtlasIndex”uint32_t probeAtlasIndex {UINT32_MAX};variable needsCapture
Section titled “variable needsCapture”bool needsCapture {true};Updated on 2026-01-26 at 17:14:35 -0500