WestLangley 3 anos atrás
pai
commit
4be7511405

+ 1 - 1
examples/webgl_clipping_stencil.html

@@ -194,7 +194,7 @@
 
 				const ground = new THREE.Mesh(
 					new THREE.PlaneGeometry( 9, 9, 1, 1 ),
-					new THREE.ShadowMaterial( { color: 0, opacity: 0.25, side: THREE.DoubleSide } )
+					new THREE.ShadowMaterial( { color: 0x000000, opacity: 0.25, side: THREE.DoubleSide } )
 				);
 
 				ground.rotation.x = - Math.PI / 2; // rotates X/Y to X/Z

+ 1 - 1
examples/webgl_geometry_spline_editor.html

@@ -87,7 +87,7 @@
 
 				const planeGeometry = new THREE.PlaneGeometry( 2000, 2000 );
 				planeGeometry.rotateX( - Math.PI / 2 );
-				const planeMaterial = new THREE.ShadowMaterial( { opacity: 0.2 } );
+				const planeMaterial = new THREE.ShadowMaterial( { color: 0x000000, opacity: 0.2 } );
 
 				const plane = new THREE.Mesh( planeGeometry, planeMaterial );
 				plane.position.y = - 200;