PointLightHelper constructor
PointLightHelper(
- dynamic light,
- dynamic sphereSize,
- Color color
Implementation
factory PointLightHelper(light, sphereSize, Color color) {
var geometry = SphereGeometry(sphereSize, 4, 2);
var material = MeshBasicMaterial({"wireframe": true, "fog": false, "toneMapped": false});
var plh = PointLightHelper.create(geometry, material);
plh.light = light;
plh.light.updateMatrixWorld(false);
plh.color = color;
plh.matrix = plh.light.matrixWorld;
plh.matrixAutoUpdate = false;
plh.update();
return plh;
/*
// TODO: delete this comment?
const distanceGeometry = new three.IcosahedronBufferGeometry( 1, 2 );
const distanceMaterial = new three.MeshBasicMaterial( { color: hexColor, fog: false, wireframe: true, opacity: 0.1, transparent: true } );
this.lightSphere = new three.Mesh( bulbGeometry, bulbMaterial );
this.lightDistance = new three.Mesh( distanceGeometry, distanceMaterial );
const d = light.distance;
if ( d === 0.0 ) {
this.lightDistance.visible = false;
} else {
this.lightDistance.scale.set( d, d, d );
}
this.add( this.lightDistance );
*/
}