소스 검색

Merge pull request #19869 from WestLangley/dev_examples_transparency

Examples: .transparency -> .transmission
Mr.doob 5 년 전
부모
커밋
f39852c3c4
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' );