提交 2b7c115d 编写于 作者: A alteredq

Fixed shadows in cars demo.

Bah, this one was tricky. World positions are not updated for objects that are not part of the scene graph so spotlight target was just hanging in limbo.
上级 9fdd1419
......@@ -178,6 +178,7 @@
spotLight.shadowMapHeight = SHADOW_MAP_HEIGHT;
scene.add( spotLight );
scene.add( spotLight.target );
directionalLight2 = new THREE.PointLight( 0xff9900, 0.25 );
directionalLight2.position.set( 0.5, -1, 0.5 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册