Problem with envMap

Description of the problem

i use cubeTexture to load six skybox imgs
and set it to MeshBasicMaterial’s envMap

var material = new THREE.MeshBasicMaterial({
       envMap: texture,
       side: THREE.DoubleSide
});

var skyBox = new THREE.Mesh(new THREE.SphereGeometry(2000, 32, 32), material);

it works fine with r86,but makes wrong mapping direction in r89

is there anything changes between the two version ?

and how can i fix the problem?

Three.js version
  • Dev
  • r89
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Author: Fantashit

1 thought on “Problem with envMap

Comments are closed.