IntegrateValidity(IDeviceContext, int, int, int, BufferSlice<float>)
Integrate validity.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor
public IProbeIntegrator.Result IntegrateValidity(IDeviceContext context, int positionOffset, int positionCount, int sampleCount, BufferSlice<float> validityEstimateOut)
Parameters
Device context.
Offset measured from the beginning of the probe position buffer.
Number of probes to integrate.
Number of samples to take.
Buffer slice to write the validity estimate into.
Returns
Type | Description |
|---|---|
| Result | Return code. |
Remarks
The integrator does spherical sampling for each probe position. Validity is 1 if all rays hit front-facing triangles or the sky. Validity is 0 if all rays hit back-facing triangles.