فهرست منبع

Removed ferrari_ap_.png

Mr.doob 5 ماه پیش
والد
کامیت
60ca5158e7
2فایلهای تغییر یافته به همراه5 افزوده شده و 6 حذف شده
  1. BIN
      examples/models/gltf/ferrari_ao_.png
  2. 5 6
      examples/webgl_lights_rectarealight_map.html

BIN
examples/models/gltf/ferrari_ao_.png


+ 5 - 6
examples/webgl_lights_rectarealight_map.html

@@ -85,16 +85,15 @@
 				scene.add( mshStdFloor );
 
 				// Car shadow (AO plane)
-				const aoTexture = new THREE.TextureLoader().load( 'models/gltf/ferrari_ao_.png' );
+				const aoTexture = new THREE.TextureLoader().load( 'models/gltf/ferrari_ao.png' );
 				const shadowPlane = new THREE.Mesh(
 					new THREE.PlaneGeometry( 256, 512 ),
 					new THREE.MeshBasicMaterial( {
-						color: 0x000000,
-						// map: aoTexture,
-						alphaMap: aoTexture,
-						// blending: THREE.SubstractiveBlending,
+						map: aoTexture,
+						blending: THREE.MultiplyBlending,
 						depthWrite: false,
-						transparent: true
+						transparent: true,
+						premultipliedAlpha: true
 					} )
 				);
 				shadowPlane.rotation.x = - Math.PI / 2;

粤ICP备19079148号