Version: 2023.1
public void AddDirectionalLight (Vector3 direction, Color color, float intensity);

参数

direction The direction from the light probe to the light. The vector should be normalized for correct results.
color 光的颜色。
intensity The intensity of the light.

描述

Add a directional light to the spherical harmonics.

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

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