class
render::LightProbeVolume
Render thread counterpart of LightProbeVolume.
Public
Methods
~LightProbeVolume
SetRendererId
Sets an ID that can be used for uniquely identifying this object by the renderer.
GetRendererId
Retrieves an ID that can be used for uniquely identifying this object by the renderer.
GetWorldTransform
Returns the world space transform for the volume.
GetActiveProbeCount
Returns the number of light probes that are active.
GetLightProbePositions
Returns a list of positions for all light probes.
Only the first getNumActiveProbes() entries are active.
GetLightProbeInfos
Returns non-positional information about all light probes.
Only the first getNumActiveProbes() entries are active.
GetProbeCoefficients
Populates the vector with SH coefficients for each light probe.
Involves reading the GPU buffer.
GetCoefficientsTexture
Returns the texture containing SH coefficients for all probes in the volume.
Protected
Constructors
LightProbeVolume
Methods
Initialize
Called on the render thread when the object is first created.
SyncFromCoreObject
Update internal data from provided memory buffer that was populated with data from the owning CoreObject.
RenderProbes
Renders dirty probes and updates their SH coefficients in the local GPU buffer.
- commandBuffer
- Command buffer to encode the operations on.
- maxProbeCount
- Maximum number of probes to render. Set to zero to render all dirty probes. Limiting the number of probes allows the rendering to be distributed over multiple frames.
Returns: True if there are no more dirty probes to process.
ResizeCoefficientTexture
Resizes the internal texture that stores light probe SH coefficients, to the specified size (in the number of probes).