从无限远的地方以单一方向发出的光。
new DirectionalLight(options)
Parameters:
options
(Object)
具有以下属性的对象:
Name | Description |
---|---|
options.direction
Cartesian3
|
光线发出的方向。 |
options.color
Color
default Color.WHITE
|
灯光的颜色。 |
options.intensity
Number
default 1.0
|
光的强度。 |
Throws
-
DeveloperError : options.direction不能为零长度
Members
color : Color
灯光的颜色。
-
Default Value:
Color.WHITE
direction : Cartesian3
光线发出的方向。
intensity : Number
光的强度。
-
Default Value:
1.0