Version: 2022.2

LightProbesQuery.CalculateInterpolatedLightAndOcclusionProbes

切换到手册
public void CalculateInterpolatedLightAndOcclusionProbes (NativeArray<Vector3> positions, NativeArray<int> tetrahedronIndices, NativeArray<SphericalHarmonicsL2> lightProbes, NativeArray<Vector4> occlusionProbes);

参数

positions 用于计算探针的世界空间位置的数组。
tetrahedronIndices The array of tetrahedron indices that guide interpolation. Start with values of 0 and reuse results between frames for faster lookup.
lightProbes The array of light probes where the resulting lighting is written to.
occlusionProbes The array of occlusion probes where the resulting occlusion is written to.

描述

计算给定世界空间位置处的光照探针和遮挡探针。