@babylonjs/materials
Advanced tools
Comparing version 4.0.0-alpha.25 to 4.0.0-alpha.26
@@ -85,12 +85,20 @@ import * as tslib_1 from "tslib"; | ||
if (scene.texturesEnabled) { | ||
if (!this._mixTexture1 || !this._mixTexture1.isReady()) { | ||
return false; | ||
} | ||
defines._needUVs = true; | ||
if (MaterialFlags.DiffuseTextureEnabled) { | ||
if (this._mixTexture1) { | ||
if (!this._mixTexture1.isReady()) { | ||
return false; | ||
} | ||
else { | ||
defines._needUVs = true; | ||
defines.DIFFUSE = true; | ||
} | ||
if (!this._diffuseTexture1 || !this._diffuseTexture1.isReady()) { | ||
return false; | ||
} | ||
defines.DIFFUSE = true; | ||
if (!this._diffuseTexture2 || !this._diffuseTexture2.isReady()) { | ||
return false; | ||
} | ||
if (!this._diffuseTexture3 || !this._diffuseTexture3.isReady()) { | ||
return false; | ||
} | ||
if (!this._diffuseTexture4 || !this._diffuseTexture4.isReady()) { | ||
return false; | ||
} | ||
if (this._mixTexture2) { | ||
@@ -100,5 +108,15 @@ if (!this._mixTexture2.isReady()) { | ||
} | ||
else { | ||
defines.MIXMAP2 = true; | ||
defines.MIXMAP2 = true; | ||
if (!this._diffuseTexture5 || !this._diffuseTexture5.isReady()) { | ||
return false; | ||
} | ||
if (!this._diffuseTexture6 || !this._diffuseTexture6.isReady()) { | ||
return false; | ||
} | ||
if (!this._diffuseTexture7 || !this._diffuseTexture7.isReady()) { | ||
return false; | ||
} | ||
if (!this._diffuseTexture8 || !this._diffuseTexture8.isReady()) { | ||
return false; | ||
} | ||
} | ||
@@ -105,0 +123,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
"description": "The Babylon.js materials library is a collection of advanced materials to be used in a Babylon.js scene.", | ||
"version": "4.0.0-alpha.25", | ||
"version": "4.0.0-alpha.26", | ||
"repository": { | ||
@@ -252,3 +252,3 @@ "type": "git", | ||
"dependencies": { | ||
"@babylonjs/core": "4.0.0-alpha.25", | ||
"@babylonjs/core": "4.0.0-alpha.26", | ||
"tslib": "^1.9.3" | ||
@@ -255,0 +255,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
897573
7374
+ Added@babylonjs/core@4.0.0-alpha.26(transitive)
- Removed@babylonjs/core@4.0.0-alpha.25(transitive)