|
@@ -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: {
|