Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

LightProbesQuery.CalculateInterpolatedLightAndOcclusionProbe

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