فهرست منبع

.transparency -> .transmission

WestLangley 5 سال پیش
والد
کامیت
698fc20e8f
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      examples/webgl_lightningstrike.html
  2. 1 1
      examples/webgl_materials_car.html

+ 1 - 1
examples/webgl_lightningstrike.html

@@ -420,7 +420,7 @@
 
 				var sphereMaterial = new THREE.MeshPhysicalMaterial( {
 					transparent: true,
-					transparency: .96,
+					transmission: .96,
 					depthWrite: false,
 					color: 'white',
 					metalness: 0,

+ 1 - 1
examples/webgl_materials_car.html

@@ -102,7 +102,7 @@
 				} );
 
 				var glassMaterial = new THREE.MeshPhysicalMaterial( {
-					color: 0xffffff, metalness: 0, roughness: 0.1, transparency: 0.9, transparent: true
+					color: 0xffffff, metalness: 0, roughness: 0.1, transmission: 0.9, transparent: true
 				} );
 
 				var bodyColorInput = document.getElementById( 'body-color' );