Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babylonjs/materials

Package Overview
Dependencies
Maintainers
1
Versions
541
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babylonjs/materials - npm Package Compare versions

Comparing version 4.0.0-alpha.25 to 4.0.0-alpha.26

38

mix/mixMaterial.js

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc