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?