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?
Are you inverting the scale of the object?
Your skybox has an environment map???
Where did you copy that code pattern from?
Kind of makes sense (naming-wise) he wants that texture to be the environment, thus he set the envMap 🤓
I expect there will be users who will need to replace
mesh.scale.x = - 1;
with
mesh.geometry.scale( - 1, 1, 1 );
three.js r.89
hi, thanks for help
i tried to set the scale but got a black screen ...
skyBox.geometry.scale( -1, 1, 1 );
Copy the coding patterns in the three.js examples.
sad t . t