IntegrateValidity(IDeviceContext, int, int, int, BufferSlice<float>)
Integrate validity.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.LightTransport
- Assembly: UnityEditor.CoreModule
public IProbeIntegrator.Result IntegrateValidity(IDeviceContext context, int positionOffset, int positionCount, int sampleCount, BufferSlice<float> validityEstimateOut)
Parameters
IDeviceContext for computation and memory operations.
Offset measured from the beginning of the probe position buffer.
Number of probes to integrate.
Number of samples to take.
BufferSlice 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.