Selaa lähdekoodia

Examples: Improved webgl_materials_car ao.

Mr.doob 5 vuotta sitten
vanhempi
commit
0b8e3d82cc
2 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. BIN
      examples/models/gltf/ferrari_ao.png
  2. 1 1
      examples/webgl_materials_car.html

BIN
examples/models/gltf/ferrari_ao.png


+ 1 - 1
examples/webgl_materials_car.html

@@ -157,7 +157,7 @@
 					var shadow = new THREE.Mesh(
 						new THREE.PlaneBufferGeometry( 0.655 * 4, 1.3 * 4 ),
 						new THREE.MeshBasicMaterial( {
-							map: texture, opacity: 0.4, transparent: true
+							map: texture, blending: THREE.MultiplyBlending, toneMapped: false, transparent: true
 						} )
 					);
 					shadow.rotation.x = - Math.PI / 2;