Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

No HDRCubeTexture Parsing

$
0
0

If you specify texture customType = "BABYLON.HDRCubeTexture" and the other HDRCubeTexture properties... With .hdr as the

name... It will still try to use as regular CubeTexure and look for _px and _nx cube texture files:

I think babylon.texture.ts Parse function:

now is :

 if (parsedTexture.isCube) {
     return CubeTexture.Parse(parsedTexture, scene, rootUrl);
 }

and should be something like:

 if (parsedTexture.isCube) {
     if (parsedTexture.customType === "BABYLON.HDRCubeTexture")
        return HDRCubeTexture.Parse(parsedTexture, scene, rootUrl);
     else   
        return CubeTexture.Parse(parsedTexture, scene, rootUrl);
 }

OR IS THERE MORE to make HDRCubeTextures load from serialized .babylon file instead of only hand coding?


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>