Browse Source

r132 (bis) (bis)

Mr.doob 3 years ago
parent
commit
e62b253081
4 changed files with 10 additions and 9 deletions
  1. 3 3
      build/three.js
  2. 0 0
      build/three.min.js
  3. 6 5
      build/three.module.js
  4. 1 1
      package.json

+ 3 - 3
build/three.js

@@ -5862,7 +5862,6 @@
 	class Material extends EventDispatcher {
 		constructor() {
 			super();
-			this._alphaTest = 0;
 			Object.defineProperty(this, 'id', {
 				value: materialId++
 			});
@@ -5910,6 +5909,7 @@
 			this.toneMapped = true;
 			this.userData = {};
 			this.version = 0;
+			this._alphaTest = 0;
 		}
 
 		get alphaTest() {
@@ -25626,8 +25626,6 @@
 	class MeshPhysicalMaterial extends MeshStandardMaterial {
 		constructor(parameters) {
 			super();
-			this._clearcoat = 0;
-			this._transmission = 0;
 			this.defines = {
 				'STANDARD': '',
 				'PHYSICAL': ''
@@ -25658,6 +25656,8 @@
 			this.specularIntensityMap = null;
 			this.specularTint = new Color(1, 1, 1);
 			this.specularTintMap = null;
+			this._clearcoat = 0;
+			this._transmission = 0;
 			this.setValues(parameters);
 		}
 

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 6 - 5
build/three.module.js

@@ -7687,8 +7687,6 @@ let materialId = 0;
 
 class Material extends EventDispatcher {
 
-	_alphaTest = 0;
-
 	constructor() {
 
 		super();
@@ -7757,6 +7755,8 @@ class Material extends EventDispatcher {
 
 		this.version = 0;
 
+		this._alphaTest = 0;
+
 	}
 
 	get alphaTest() {
@@ -35090,9 +35090,6 @@ MeshStandardMaterial.prototype.isMeshStandardMaterial = true;
 
 class MeshPhysicalMaterial extends MeshStandardMaterial {
 
-	_clearcoat = 0;
-	_transmission = 0;
-
 	constructor( parameters ) {
 
 		super();
@@ -35142,6 +35139,10 @@ class MeshPhysicalMaterial extends MeshStandardMaterial {
 		this.specularTint = new Color( 1, 1, 1 );
 		this.specularTintMap = null;
 
+		this._clearcoat = 0;
+		this._transmission = 0;
+
+
 		this.setValues( parameters );
 
 	}

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "three",
-  "version": "0.132.1",
+  "version": "0.132.2",
   "description": "JavaScript 3D library",
   "main": "build/three.js",
   "module": "build/three.module.js",

Some files were not shown because too many files changed in this diff