IntegrateDirectRadiance(IDeviceContext, int, int, int, bool, BufferSlice<SphericalHarmonicsL2>)
Integrate direct radiance.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor.CoreModule
public IProbeIntegrator.Result IntegrateDirectRadiance(IDeviceContext context, int positionOffset, int positionCount, int sampleCount, bool ignoreEnvironment, BufferSlice<SphericalHarmonicsL2> radianceEstimateOut)
Parameters
Device context.
Offset measured from the beginning of the probe position buffer.
Number of probes to integrate.
Number of samples to take.
Ignore environment lighting when computing direct contribution.
BufferSlice to write the radiance estimate into.
Returns
Type | Description |
|---|---|
| Result | Return code. |
Remarks
The integrator does spherical sampling of incoming direct radiance for each probe position.