Просмотр исходного кода

Examples: Improved draco example and re-encode bunny.drc with 2.2 (cl7) reducing file size from 96KB to 47KB.

Mr.doob 1 месяц назад
Родитель
Сommit
89c278c262

BIN
examples/models/draco/bunny.drc


BIN
examples/screenshots/webgl_loader_draco.jpg


+ 2 - 1
examples/webgl_loader_draco.html

@@ -51,7 +51,7 @@
 			// Ground
 			const plane = new THREE.Mesh(
 				new THREE.PlaneGeometry( 8, 8 ),
-				new THREE.MeshPhongMaterial( { color: 0xcbcbcb, specular: 0x101010 } )
+				new THREE.MeshLambertMaterial( { color: 0xcbcbcb } )
 			);
 			plane.rotation.x = - Math.PI / 2;
 			plane.position.y = 0.03;
@@ -67,6 +67,7 @@
 			spotLight.angle = Math.PI / 16;
 			spotLight.penumbra = 0.5;
 			spotLight.castShadow = true;
+			spotLight.shadow.radius = 8;
 			spotLight.position.set( - 1, 1, 1 );
 			scene.add( spotLight );
 

粤ICP备19079148号