diff --git a/packages/dev/core/src/Loading/Plugins/babylonFileLoader.ts b/packages/dev/core/src/Loading/Plugins/babylonFileLoader.ts index 0f4711b5e0d..a2e0950a113 100644 --- a/packages/dev/core/src/Loading/Plugins/babylonFileLoader.ts +++ b/packages/dev/core/src/Loading/Plugins/babylonFileLoader.ts @@ -192,7 +192,8 @@ const loadAssetContainer = (scene: Scene, data: string, rootUrl: string, onError } else { const cubeTexture = CubeTexture.CreateFromPrefilteredData( (parsedData.environmentTexture.match(/https?:\/\//g) ? "" : rootUrl) + parsedData.environmentTexture, - scene + scene, + parsedData.environmentTextureForcedExtension ); if (parsedData.environmentTextureRotationY) { cubeTexture.rotationY = parsedData.environmentTextureRotationY;