Browse Source

MeshPhysicalMaterial: .transparency -> .transmission

WestLangley 5 years ago
parent
commit
e261305f10
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/Three.Legacy.js

+ 20 - 0
src/Three.Legacy.js

@@ -59,6 +59,7 @@ import { TextureLoader } from './loaders/TextureLoader.js';
 import { Material } from './materials/Material.js';
 import { LineBasicMaterial } from './materials/LineBasicMaterial.js';
 import { MeshPhongMaterial } from './materials/MeshPhongMaterial.js';
+import { MeshPhysicalMaterial } from './materials/MeshPhysicalMaterial.js';
 import { PointsMaterial } from './materials/PointsMaterial.js';
 import { ShaderMaterial } from './materials/ShaderMaterial.js';
 import { Box2 } from './math/Box2.js';
@@ -1578,6 +1579,25 @@ Object.defineProperties( MeshPhongMaterial.prototype, {
 
 } );
 
+Object.defineProperties( MeshPhysicalMaterial.prototype, {
+
+	transparency: {
+		get: function () {
+
+			console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
+			return this.transmission;
+
+		},
+		set: function ( value ) {
+
+			console.warn( 'THREE.MeshPhysicalMaterial: .transparency has been renamed to .transmission.' );
+			this.transmission = value;
+
+		}
+	}
+
+} );
+
 Object.defineProperties( ShaderMaterial.prototype, {
 
 	derivatives: {