提交 9b2017e4 编写于 作者: M Mr.doob

Fixed MD2 example shadows.

上级 f958742e
......@@ -95,26 +95,26 @@
scene.add( new THREE.AmbientLight( 0x222222 ) );
var light = new THREE.SpotLight( 0xffffff, 10, 1000 );
var light = new THREE.SpotLight( 0xffffff, 5, 1000 );
light.position.set( 200, 250, 500 );
light.castShadow = true;
light.shadowMapWidth = 1024;
light.shadowMapHeight = 1024;
light.shadowMapDarkness = 0.95;
//light.shadowCameraVisible = true;
light.shadow.mapSize.width = 1024;
light.shadow.mapSize.height = 1024;
light.shadow.camera.far = 2000;
// scene.add( new THREE.CameraHelper( light.shadow.camera ) );
scene.add( light );
var light = new THREE.SpotLight( 0xffffff, 5, 500 );
light.position.set( -100, 350, 250 );
var light = new THREE.SpotLight( 0xffffff, 5, 1000 );
light.position.set( -100, 350, 350 );
light.castShadow = true;
light.shadowMapWidth = 1024;
light.shadowMapHeight = 1024;
light.shadowMapDarkness = 0.95;
//light.shadowCameraVisible = true;
light.shadow.mapSize.width = 1024;
light.shadow.mapSize.height = 1024;
light.shadow.camera.far = 1000;
// scene.add( new THREE.CameraHelper( light.shadow.camera ) );
scene.add( light );
// GROUND
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册