IntegrateDirectRadiance(IDeviceContext, int, int, int, bool, BufferSlice<SphericalHarmonicsL2>)
Integrate direct radiance.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor
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.
Buffer slice 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.