defini o eixo x como eixo ascendente na minha cena three.js. Agora todos os mapas ambientais (hdr) estão orientados incorretamente. Como posso consertar? Tentei girar o arquivo HDR, mas não funcionou.
this.pmremGenerator = new THREE.PMREMGenerator(renderer as any);
new RGBELoader().setDataType(THREE.UnsignedByteType).setPath('assets/').load('adams_place_bridge_1k.hdr', (texture) => {
texture.mapping = THREE.EquirectangularReflectionMapping;
var envMap = this.pmremGenerator.fromEquirectangular(texture).texture;
scene.background = envMap;
scene.environment = envMap;
texture.dispose();
});
Existe uma solução alternativa com cubemaps?