Răsfoiți Sursa

Examples: Fix shadows in outline demo. (#29565)

Michael Herzog 1 an în urmă
părinte
comite
c32e4c729a

BIN
examples/screenshots/webgl_postprocessing_outline.jpg


+ 2 - 2
examples/webgl_postprocessing_outline.html

@@ -148,7 +148,7 @@
 				scene.add( new THREE.AmbientLight( 0xaaaaaa, 0.6 ) );
 				scene.add( new THREE.AmbientLight( 0xaaaaaa, 0.6 ) );
 
 
 				const light = new THREE.DirectionalLight( 0xddffdd, 2 );
 				const light = new THREE.DirectionalLight( 0xddffdd, 2 );
-				light.position.set( 1, 1, 1 );
+				light.position.set( 5, 5, 5 );
 				light.castShadow = true;
 				light.castShadow = true;
 				light.shadow.mapSize.width = 1024;
 				light.shadow.mapSize.width = 1024;
 				light.shadow.mapSize.height = 1024;
 				light.shadow.mapSize.height = 1024;
@@ -159,7 +159,7 @@
 				light.shadow.camera.right = d;
 				light.shadow.camera.right = d;
 				light.shadow.camera.top = d;
 				light.shadow.camera.top = d;
 				light.shadow.camera.bottom = - d;
 				light.shadow.camera.bottom = - d;
-				light.shadow.camera.far = 1000;
+				light.shadow.camera.far = 25;
 
 
 				scene.add( light );
 				scene.add( light );
 
 

粤ICP备19079148号