three.js RectAreaLightHelper

2023-02-16 17:50 更新

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

代码示例

const light = new THREE.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 () : undefined

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

源码

examples/jsm/helpers/RectAreaLightHelper.js


以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号