Skip to content Skip to sidebar Skip to footer

Adding Light To Scene Has No Effect

I was just starting to play around with Three.JS but I am stuck at the beginning. When I add a light to the scene, it has no effect. renderer = new THREE.WebGLRenderer() camera = n

Solution 1:

MeshBasicMaterial doesn't support lighting, you should change your material. A basic material supporting lighting is MeshLambertMaterial, I have updated your jsfiddle.

More detailed example: http://mrdoob.github.com/three.js/examples/canvas_lights_pointlights.html

Post a Comment for "Adding Light To Scene Has No Effect"