2D灯光全局配置参数

构造函数

属性

ambientColor: Color = ...

ambient light color

环境光颜色

ambientLayerMask: number = -1

Layers affected by ambient light (affects all layers by default)

环境光影响的层(默认影响所有层)

lightDirection: Vector3 = ...

Light direction vector (affects normal effect)

灯光方向矢量(影响法线效果)

multiSamples: number = 4

Light and shadow map multisampling number (1 or 4, affects jagged shadow edges)

光影图多重采样数(1或4,影响阴影边缘锯齿)