Hey Guys,
i’m working on a project where a different skybox/cubemap needs to be set at scene load depending on player choices.
However the new map will always be blurry, even though mip is set to 1.
I reproduced this error in this mockup:
https://playcanvas.com/editor/scene/1404161
I reckon the error lies in the way i load my asset, but i just can’t figure it out.
var cubeMapAsset = this.cubeMaps[1];
var onAssetReady = function(asset) {
// Show the entity when the material asset is loaded
//console.log("cubemap ready");
self.app.scene.setSkybox(asset.resources);
};
// Start async loading the material asset
cubeMapAsset.ready(onAssetReady);
self.app.assets.load(cubeMapAsset);
Thanks