Преглед изворни кода

Examples: Improved webgl_materials_car ao.

Mr.doob пре 5 година
родитељ
комит
0b8e3d82cc
2 измењених фајлова са 1 додато и 1 уклоњено
  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;