Переглянути джерело

Removed premultipliedAlpha from relevant examples.

Mr.doob 4 місяців тому
батько
коміт
10f45d69dc

+ 1 - 1
examples/misc_exporter_usdz.html

@@ -145,7 +145,7 @@
 
 				const geometry = new THREE.PlaneGeometry();
 				const material = new THREE.MeshBasicMaterial( {
-					map: shadowTexture, blending: THREE.MultiplyBlending, toneMapped: false, premultipliedAlpha: true
+					map: shadowTexture, blending: THREE.MultiplyBlending, toneMapped: false
 				} );
 
 				const mesh = new THREE.Mesh( geometry, material );

+ 0 - 2
examples/webgl_materials_blending.html

@@ -102,8 +102,6 @@
 						material.transparent = true;
 						material.blending = blending.constant;
 
-						material.premultipliedAlpha = true;
-
 						const x = ( i - blendings.length / 2 ) * 110;
 						const z = 0;
 

+ 1 - 1
examples/webgl_materials_car.html

@@ -171,7 +171,7 @@
 					const mesh = new THREE.Mesh(
 						new THREE.PlaneGeometry( 0.655 * 4, 1.3 * 4 ),
 						new THREE.MeshBasicMaterial( {
-							map: shadow, blending: THREE.MultiplyBlending, toneMapped: false, transparent: true, premultipliedAlpha: true
+							map: shadow, blending: THREE.MultiplyBlending, toneMapped: false, transparent: true
 						} )
 					);
 					mesh.rotation.x = - Math.PI / 2;

+ 1 - 1
examples/webgl_materials_envmaps_groundprojected.html

@@ -112,7 +112,7 @@
 					const mesh = new THREE.Mesh(
 						new THREE.PlaneGeometry( 0.655 * 4, 1.3 * 4 ),
 						new THREE.MeshBasicMaterial( {
-							map: shadow, blending: THREE.MultiplyBlending, toneMapped: false, transparent: true, premultipliedAlpha: true
+							map: shadow, blending: THREE.MultiplyBlending, toneMapped: false, transparent: true
 						} )
 					);
 					mesh.rotation.x = - Math.PI / 2;

粤ICP备19079148号