I've been diving into learning Thee.js, and while it's fairly straightforward, I've hit a roadblock with getting shadows to work. Despite setting castShadows, recieveShadows, and shadowMapEnabled to true in the appropriate places, shadows are not appearing at all.
My goal is to have my imported model cast shadows on itself so that the details of the model are visible.
Here is the current code I'm using:
var container;
var camera, scene, renderer;
var mouseX = 0, mouseY = 0;
// ... (omitted for brevity)
function animate(){
requestAnimationFrame( animate );
controls.update();
camera.lookAt(scene.position);
renderer.render(scene, camera);
}
Unfortunately, the shadows are not showing up as expected. Here is the current result: http://gyazo.com/931f9103e01a5985508897fb1a5d0b88