@babylonjs/loaders
Advanced tools
Comparing version
@@ -1,2 +0,1 @@ | ||
import { Scalar } from "@babylonjs/core/Maths/math.scalar.js"; | ||
import { SphericalHarmonics, SphericalPolynomial } from "@babylonjs/core/Maths/sphericalPolynomial.js"; | ||
@@ -97,3 +96,3 @@ import { Quaternion, Matrix } from "@babylonjs/core/Maths/math.vector.js"; | ||
// Compute the lod generation scale to fit exactly to the number of levels available. | ||
const lodGenerationScale = (imageData.length - 1) / Scalar.Log2(light.specularImageSize); | ||
const lodGenerationScale = (imageData.length - 1) / Math.log2(light.specularImageSize); | ||
return babylonTexture.updateRGBDAsync(imageData, sphericalPolynomial, lodGenerationScale); | ||
@@ -100,0 +99,0 @@ }); |
@@ -40,3 +40,2 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
const promises = new Array(); | ||
promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial)); | ||
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial)); | ||
@@ -43,0 +42,0 @@ promises.push(this._loadTranslucentPropertiesAsync(extensionContext, material, babylonMaterial, extension)); |
@@ -36,3 +36,2 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
const promises = new Array(); | ||
promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial)); | ||
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial)); | ||
@@ -39,0 +38,0 @@ promises.push(this._loadDispersionPropertiesAsync(extensionContext, material, babylonMaterial, extension)); |
@@ -257,3 +257,2 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
const promises = new Array(); | ||
promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial)); | ||
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial)); | ||
@@ -260,0 +259,0 @@ promises.push(this._loadTransparentPropertiesAsync(extensionContext, material, babylonMaterial, extension)); |
@@ -43,3 +43,2 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
const promises = new Array(); | ||
promises.push(this._loader.loadMaterialBasePropertiesAsync(context, material, babylonMaterial)); | ||
promises.push(this._loader.loadMaterialPropertiesAsync(context, material, babylonMaterial)); | ||
@@ -46,0 +45,0 @@ promises.push(this._loadVolumePropertiesAsync(extensionContext, material, babylonMaterial, extension)); |
export * from "./glTFLoader"; | ||
export * from "./glTFLoaderExtension"; | ||
export * from "./glTFLoaderExtensionRegistry"; | ||
export * from "./glTFLoaderInterfaces"; | ||
export * from "./Extensions/index"; |
/* eslint-disable import/no-internal-modules */ | ||
export * from "./glTFLoader.js"; | ||
export * from "./glTFLoaderExtension.js"; | ||
export * from "./glTFLoaderExtensionRegistry.js"; | ||
export * from "./glTFLoaderInterfaces.js"; | ||
export * from "./Extensions/index.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -928,3 +928,3 @@ import { Observable } from "@babylonjs/core/Misc/observable.js"; | ||
_logEnabled(message) { | ||
const spaces = GLTFFileLoader._logSpaces.substr(0, this._logIndentLevel * 2); | ||
const spaces = GLTFFileLoader._logSpaces.substring(0, this._logIndentLevel * 2); | ||
Logger.Log(`${spaces}${message}`); | ||
@@ -931,0 +931,0 @@ } |
@@ -214,3 +214,3 @@ import { Color3 } from "@babylonjs/core/Maths/math.color.js"; | ||
if (lastDelimiter > -1) { | ||
url += value.substr(lastDelimiter + 1); | ||
url += value.substring(lastDelimiter + 1); | ||
} | ||
@@ -217,0 +217,0 @@ else { |
{ | ||
"name": "@babylonjs/loaders", | ||
"version": "7.24.0", | ||
"version": "7.25.0", | ||
"main": "index.js", | ||
@@ -16,3 +16,3 @@ "module": "index.js", | ||
"build": "npm run clean && npm run compile", | ||
"clean": "rimraf dist && rimraf *.tsbuildinfo && rimraf \"./**/*.!(md|json|build.json|lts.json)\"", | ||
"clean": "rimraf dist && rimraf *.tsbuildinfo -g && rimraf \"./**/*.!(md|json|build.json|lts.json)\" -g", | ||
"compile": "tsc -b tsconfig.build.json && tsc -b tsconfig.lts.json", | ||
@@ -22,6 +22,6 @@ "postcompile": "build-tools -c add-js-to-es6" | ||
"devDependencies": { | ||
"@babylonjs/core": "^7.24.0", | ||
"@babylonjs/core": "^7.25.0", | ||
"@dev/build-tools": "^1.0.0", | ||
"@lts/loaders": "^1.0.0", | ||
"babylonjs-gltf2interface": "^7.24.0" | ||
"babylonjs-gltf2interface": "^7.25.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1807059
-0.07%16273
-0.02%