@babylonjs/loaders
Advanced tools
Comparing version
@@ -57,3 +57,3 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
promises.push(this._loader.loadTextureInfoAsync(`${context}/clearcoatTexture`, properties.clearcoatTexture, (texture) => { | ||
texture.name = `${babylonMaterial.name} (ClearCoat Intensity)`; | ||
texture.name = `${babylonMaterial.name} (ClearCoat)`; | ||
babylonMaterial.clearCoat.texture = texture; | ||
@@ -60,0 +60,0 @@ })); |
@@ -72,2 +72,3 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTransmissionTexture`, extension.diffuseTransmissionTexture).then((texture) => { | ||
texture.name = `${babylonMaterial.name} (Diffuse Transmission)`; | ||
pbrMaterial.subSurface.translucencyIntensityTexture = texture; | ||
@@ -84,2 +85,3 @@ })); | ||
promises.push(this._loader.loadTextureInfoAsync(`${context}/diffuseTransmissionColorTexture`, extension.diffuseTransmissionColorTexture).then((texture) => { | ||
texture.name = `${babylonMaterial.name} (Diffuse Transmission Color)`; | ||
pbrMaterial.subSurface.translucencyColorTexture = texture; | ||
@@ -86,0 +88,0 @@ })); |
@@ -52,3 +52,3 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
promises.push(this._loader.loadTextureInfoAsync(`${context}/iridescenceTexture`, properties.iridescenceTexture, (texture) => { | ||
texture.name = `${babylonMaterial.name} (Iridescence Intensity)`; | ||
texture.name = `${babylonMaterial.name} (Iridescence)`; | ||
babylonMaterial.iridescence.texture = texture; | ||
@@ -55,0 +55,0 @@ })); |
@@ -55,3 +55,3 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
promises.push(this._loader.loadTextureInfoAsync(`${context}/specularTexture`, properties.specularTexture, (texture) => { | ||
texture.name = `${babylonMaterial.name} (Specular F0 Strength)`; | ||
texture.name = `${babylonMaterial.name} (Specular)`; | ||
babylonMaterial.metallicReflectanceTexture = texture; | ||
@@ -63,3 +63,3 @@ babylonMaterial.useOnlyMetallicFromMetallicReflectanceTexture = true; | ||
promises.push(this._loader.loadTextureInfoAsync(`${context}/specularColorTexture`, properties.specularColorTexture, (texture) => { | ||
texture.name = `${babylonMaterial.name} (Specular F0 Color)`; | ||
texture.name = `${babylonMaterial.name} (Specular Color)`; | ||
babylonMaterial.reflectanceTexture = texture; | ||
@@ -66,0 +66,0 @@ })); |
@@ -294,2 +294,3 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
return this._loader.loadTextureInfoAsync(`${context}/transmissionTexture`, extension.transmissionTexture, undefined).then((texture) => { | ||
texture.name = `${babylonMaterial.name} (Transmission)`; | ||
pbrMaterial.subSurface.refractionIntensityTexture = texture; | ||
@@ -296,0 +297,0 @@ pbrMaterial.subSurface.useGltfStyleTextures = true; |
@@ -70,3 +70,3 @@ import { PBRMaterial } from "@babylonjs/core/Materials/PBR/pbrMaterial.js"; | ||
return this._loader.loadTextureInfoAsync(`${context}/thicknessTexture`, extension.thicknessTexture).then((texture) => { | ||
texture.name = `${babylonMaterial.name} (thickness)`; | ||
texture.name = `${babylonMaterial.name} (Thickness)`; | ||
babylonMaterial.subSurface.thicknessTexture = texture; | ||
@@ -73,0 +73,0 @@ babylonMaterial.subSurface.useGltfStyleTextures = true; |
@@ -7,2 +7,3 @@ import type { Nullable } from "@babylonjs/core/types.js"; | ||
import { GLTFLoader } from "../glTFLoader"; | ||
import "@babylonjs/core/Audio/audioSceneComponent.js"; | ||
declare module "../../glTFFileLoader" { | ||
@@ -9,0 +10,0 @@ interface GLTFLoaderExtensionOptions { |
@@ -8,2 +8,3 @@ import { Vector3 } from "@babylonjs/core/Maths/math.vector.js"; | ||
import { registerGLTFExtension, unregisterGLTFExtension } from "../glTFLoaderExtensionRegistry.js"; | ||
import "@babylonjs/core/Audio/audioSceneComponent.js"; | ||
const NAME = "MSFT_audio_emitter"; | ||
@@ -10,0 +11,0 @@ /** |
{ | ||
"name": "@babylonjs/loaders", | ||
"version": "7.25.0", | ||
"version": "7.25.1", | ||
"main": "index.js", | ||
@@ -21,6 +21,6 @@ "module": "index.js", | ||
"devDependencies": { | ||
"@babylonjs/core": "^7.25.0", | ||
"@babylonjs/core": "^7.25.1", | ||
"@dev/build-tools": "^1.0.0", | ||
"@lts/loaders": "^1.0.0", | ||
"babylonjs-gltf2interface": "^7.25.0" | ||
"babylonjs-gltf2interface": "^7.25.1" | ||
}, | ||
@@ -27,0 +27,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 not supported yet
Sorry, the diff of this file is not supported yet
1807834
0.04%16278
0.03%