mrdoob/three.js — Issue #977: Nested SpotLight's Shadows
Author: zz85
Created: 2011-12-28 10:21:31+00:00
State: open

Lets take a light to be a THREE.SpotLight which is casting shadow.

light = new THREE.SpotLight( 0xffffff );
light.castShadow = true;
light.position.set( 0, 500, 500 );

Now if I add it to a parent
var parent = new THREE.Object3D();
parent.add(light);
parent.rotation.y = Math.PI ;

It seems that changes to the parent does affect the final position of the light, but not affect the position of the shadows (seems to be using the untranslated light position). Looks like I'll have to unnest the spot light and apply transformations manually?