AmbientLight

环境光环境光会均匀的照亮场景中的所有物体。

环境光不能用来投射阴影,因为它没有方向。

基础用法

均匀照亮场景中所有物体。可以指定环境光的颜色、透明度。无法产生阴影。

API

Attributes

NameDescriptionTypeDefaultRequired
color构造函数参数numberundefinedNo
intensity构造函数参数numberundefinedNo
options实例属性AmbientLightOptions{}No

Events

NameDescriptionType
load实例创建后触发方法Function

Slots

NameDescription
default默认插槽

源代码

文档