Object3D

RectAreaLightHelper

创建一个表示 RectAreaLight 的辅助对象.

代码示例

const light = new v3d.RectAreaLight(0xffffbb, 1.0, 5, 5); const helper = new RectAreaLightHelper(light); scene.add(helper);

构造函数

RectAreaLightHelper(light : RectAreaLight, color : Hex)

light — 被模拟的光源.
color — (可选) 如果没有赋值辅助对象将使用光源的颜色.

属性

请到基类 Object3D 页面查看公共属性.

.light : RectAreaLight

被模拟的区域光源.

.color : hex

构造函数中传入的颜色值. 默认为 undefined. 如果改变该值, 辅助对象的颜色将在下一次 update 被调用时更新.

方法

请到基类 Object3D 页面查看公共方法.

.dispose()

销毁该区域光源辅助对象.