ドキュメント

Unity Engine

Unity Engine

AddDirectionalLight

Add a directional light to the spherical harmonics.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

AddDirectionalLight(Vector3, Color, float)

Add a directional light to the spherical harmonics.
public void AddDirectionalLight(Vector3 direction, Color color, float intensity)

Parameters

direction

The direction from the light probe to the light. The vector should be normalized for correct results.

color

The color of the light.

intensity

The intensity of the light.

Remarks

If the spherical harmonics represent a light probe, this function adds a directional light into the light probe data.

AddDirectionalLight(Vector3, Color, float)

Add a directional light to the spherical harmonics.
public void AddDirectionalLight(in Vector3 direction, in Color color, float intensity)

Parameters

direction

The direction from the light probe to the light. The vector should be normalized for correct results.

color

The color of the light.

intensity

The intensity of the light.

Remarks

If the spherical harmonics represent a light probe, this function adds a directional light into the light probe data.