文档

Unity Engine

Unity Engine

IntegrateValidity(IDeviceContext, int, int, int, BufferSlice<float>)

Integrate validity.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

Device context.

positionOffset

Offset measured from the beginning of the probe position buffer.

positionCount

Number of probes to integrate.

sampleCount

Number of samples to take.

validityEstimateOut

Buffer slice to write the validity estimate into.

Returns

Type

Description

ResultReturn 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.