LightProbesQuery.CalculateInterpolatedLightAndOcclusionProbe

Declaration

public void CalculateInterpolatedLightAndOcclusionProbe(Vector3 position, ref int tetrahedronIndex, out Rendering.SphericalHarmonicsL2 lightProbe, out Vector4 occlusionProbe);

Parameters

position The world space position used to evaluate the probe.
tetrahedronIndex Tetrahedron index that guides interpolation. Start with a value of 0 and reuse results between frames for faster lookup.
lightProbe The light probe where the resulting lighting is written to.
occlusionProbe The occlusion probe where the resulting occlusion is written to.

Description

Calculate light probe and occlusion probe at the given world space position.


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