i tried to call createEnvTexture, in excuteWhenReady function, but it’s still giving me the same error : “The cube texture is invalid (not prefiltered)”
this[$scene].executeWhenReady(() => {
EnvironmentTextureTools
.CreateEnvTextureAsync(this[$scene].environmentTexture as CubeTexture)
.then((buffer: ArrayBuffer) => {
console.log(buffer);
console.log('success');
})
.catch((error => {
console.log(error);
}))
});
}
Could you help me with that? Thank you !