lundi 29 juin 2015

THREE.PointLightHelper on THREE.js

What's up guys!

Does anyone know answer because this line:

<b> scene.add(new THREE.PointLightHelper(bluePoint, 3)); </b>

It does not work in my code, which is below:

 <b>var bluePoint = new THREE.PointLight(0x0033ff, 100, 500);
                bluePoint.position.set( 500, -500, 25 );
                scene.addLight(bluePoint);
                scene.add(new THREE.PointLightHelper(bluePoint, 3));</b>

I have added the libraries: Projector.js, CanvasRenderer.js, stats.min.js and three.min.js

But it does not work if I remove the line: scene.add(new THREE.PointLightHelper(bluePoint, 3));

My code works. What could it be? There's another way to increase the PointLight size in THREE.js without the THREE.PointLightHelper?




Aucun commentaire:

Enregistrer un commentaire