Hello,
I am currently trying to apply a cubemap to my scene so all of my objects in the scene will have reflectivity based on the cubemap / environment map.
I am using my own preloader so I don’t need to use the cubetextureloader, instead I am able to just make a CubeTexture and pass in my textures.
It looks like they are all there and being created, I just can’t seem to get the cubemap to be visible? I’m wondering if I am applying it correctly? Here is my relevant code.
var textures = [
this.preload.getTexture("px"),
this.preload.getTexture("nx"),
this.preload.getTexture("py"),
this.preload.getTexture("ny"),
this.preload.getTexture("pz"),
this.preload.getTexture("nz")
];
var cubemap = new THREE.CubeTexture(textures);
cubemap.format = THREE.RGBFormat;
this.scene.environment = cubemap;
Thanks