IProbeIntegrator.IntegrateValidity

Declaration

public LightTransport.IProbeIntegrator.Result IntegrateValidity(LightTransport.IDeviceContext context, int positionOffset, int positionCount, int sampleCount, BufferSlice<float> validityEstimateOut);

Parameters

sampleCount Number of samples to take.
context Device context.
validityEstimateOut Buffer slice to write the validity estimate into.
positionOffset Offset measured from the beginning of the probe position buffer.
positionCount Number of probes to integrate.

Returns

Result Return code.

Description

Integrate validity.

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.


Did you find this page useful? Please give it a rating: