文档

Unity Engine

Unity Engine

this[]

Access individual SH coefficients.
阅读时间1 分钟最后更新于 1 个月前

Definition

this[int, int]

public float this[int rgb, int coefficient] { get; set; }

Parameters

rgb


coefficient

Returns

Type

Description

float

Remarks

This indexer accesses the spherical harmonics coefficients with two values. The first value is an RGB color channel index between 0 and 2. The second value is an index between 0 and 8 that combines the degree and order of the spherical harmonics in this order: the single 0th degree term, the three 1st degree terms, the five 2nd degree terms.