Experimental: this API is experimental and might be changed or removed in the future.

DirectionalLight

struct in UnityEngine.Experimental.GlobalIllumination

Switch to Manual

Description

一个 helper 结构,用于将 LightDataGI 结构初始化为方向光。

Variables

color直射光颜色。
direction光的方向。
indirectColor间接光颜色。
instanceID光源的 instanceID。
mode光照模式。
penumbraWidthRadian以弧度为单位的柔和阴影的半影宽度。
shadow如果光源投射阴影,则为 true,否则为 false。