Version: 2023.2

LightProbesQuery.CalculateInterpolatedLightAndOcclusionProbe

切换到手册
public void CalculateInterpolatedLightAndOcclusionProbe (Vector3 position, ref int tetrahedronIndex, out Rendering.SphericalHarmonicsL2 lightProbe, out Vector4 occlusionProbe);

参数

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.

描述

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

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961