Fiddle: http://jsfiddle.net/8Lhz0kpc/2/
Despite following various tutorials, I am unable to achieve shadows in my project.
I have ensured that my objects are configured to cast and receive shadows:
@cube.castShadow = true
@cube.receiveShadow = true
The floor is specifically set to only receive shadows:
@floor.castShadow = false
@floor.receiveShadow = true
In relation to the light source, here are the settings I have implemented:
@spotLight.castShadow = true
@spotLight.shadowMapWidth = 1024
@spotLight.shadowMapHeight = 1024
@spotLight.shadowCameraNear = 50
@spotLight.shadowCameraFar = 800
@spotLight.shadowCameraFov = 30
@spotLight.shadowDarkness = 0.5
@spotLight.shadowCameraVisible = true
I am unsure of what else needs to be done at this point. Could there be a simple detail that I am overlooking?