|
@@ -531,7 +531,7 @@
|
|
|
|
|
|
// Environment texture
|
|
|
if (parsedData.environmentTexture !== undefined && parsedData.environmentTexture !== null) {
|
|
|
- scene.environmentTexture = Texture.Parse(parsedData.environmentTexture, scene, rootUrl);
|
|
|
+ scene.environmentTexture = CubeTexture.CreateFromPrefilteredData(rootUrl + parsedData.environmentTexture, scene);
|
|
|
if (parsedData.createDefaultSkybox === true) {
|
|
|
var skyboxScale = (scene.activeCamera !== undefined && scene.activeCamera !== null) ? (scene.activeCamera.maxZ - scene.activeCamera.minZ) / 2 : 1000;
|
|
|
var skyboxBlurLevel = parsedData.skyboxBlurLevel || 0;
|