PointLightHelper 点光源助手

—> Mesh —> Object3D

function PointLightHelper( light, sphereSize, color ) { } var geometry = new THREE.BoxGeometry(8, 8, 8, 2, 2, 2), material = new THREE.MeshPhongMaterial({color: 0x663399}), mesh = new THREE.Mesh( geometry, material ); scene.add(mesh); var ambientLight = new THREE.AmbientLight(0xffffff); scene.add(ambientLight); addPointLightHelper(-3, 7, 12, 0xffff00); addPointLightHelper(0,10,0, 0xffffff); function addPointLightHelper(x,y,z,color){ var light = new THREE.PointLight(color, 1, 50); light.position.set(x,y,z); light.decay = 1; light.distance = 20; scene.add(light); var helper = new THREE.PointLightHelper(pointLight, 1, color); scene.add(helper); }

Constructor

light sphereSize color
1
点光源 光球体尺寸 颜色

Attributes

color : Hexadecimal value

Default value : 构造函数参数里的color, undefined
Description : 颜色

light : DirectionalLight

Default value : 构造函数参数里的light
Description : 方向光

matrix : object

Default value : object.matrixWorld
Description : 光线的矩阵世界。

matrixAutoUpdate : Boolean

Default value : false
Description : 矩阵自动更新。

Methods

( ) : ?

?

( ) : ?

?

( ) : ?

?