UPDATE: Now I have two simple examples using MeshBasicMaterial and MeshLambertMaterial:
PointLight_MeshBasicMaterial.html
PointLight_MeshLambertMaterial.html
both utilize PointLight but the LambertMaterial geometry isn't fully illuminated (although there are small blinking dots on the screen?).
I created a geometry using MeshBasicMaterial
. Strangely, it seems to illuminate itself.
In addition, I added a PointLight
:
light = new THREE.PointLight( 0xaaaaaa );
light.position.set = new THREE.Vector3(-400, 0, 0);
makeScene.scene.add( light );
However, the light has no effect on the scene. I want only the PointLight
to illuminate the scene.
I experimented with other materials for my geometry like MeshPhongMaterial, MeshNormalMaterial, MeshLambertMaterial, and MeshFaceMaterial.
Here is how I applied the MeshBasicMaterial
:
material = new THREE.MeshBasicMaterial( { map: texture } );
mesh = new THREE.Mesh(aGeometry, material);
I suspect there might be an issue with my PointLight
. How can I confirm that the PointLight
is correctly affecting the scene?