ObjectUrl doesn't work in the CubeTexture constructor

Hello everybody,

I’m experimenting with the cube textures. One thing I noticed is that compared to other APIs CubeTexture constructor doesn’t work correctly with object urls.

Here is the playground

Is it the intended behavior or something is going wrong?

yeah, that’s an interesting limitation. If the URL doesn’t have an extension it expects a 6-file implementation of a cube texture. What you need to do in that case is force an extension:

? | Babylon.js Playground (babylonjs.com)