Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

IProbeIntegrator.IntegrateValidity

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

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.