Version: 2020.3
言語: 日本語

SphericalHarmonicsL2

struct in UnityEngine.Rendering

マニュアルに切り替える

説明

球面調和関数 (Spherical Harmonics) 。二項まで (3 バンド、9 係数) 。

球面調和関数 (SH) は向きの関数や信号を表し、スムーズな照明を効率的に評価するためにコンピュータグラフィックスでよく使われます。Unity は LightProbes と Environment Lighting のためにそれらに使用します。

L2 球面調和関数はカラーチャネルごとに 9つの係数で構成されます。

See Also: RenderSettings.ambientMode, RenderSettings.ambientProbe, LightProbes.

変数

this[int,int]それぞれの SH 係数にアクセスします。

Public 関数

AddAmbientLightプローブデータに Ambient Lighting を追加します。
AddDirectionalLightプローブデータに Directional Light を追加します。
ClearSH プローブを 0 にクリアします。
EvaluateEvaluates the Spherical Harmonics for each of the given directions. The result from the first direction is written into the first element of results, the result from the second direction is written into the second element of results, and so on. The array size of directions and results must match and directions must be normalized.

Operator

operator !=SH プローブが異なる場合は True を返します。
operator *指定した倍率で SH をスケールします。
operator +ふたつの SH プローブを追加します。
operator ==SH プローブが等しい場合は True を返します。
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961