environmentEquirectangularTexture.mapping = THREE.EquirectangularReflectionMapping;
scene.environment = environmentEquirectangularTexture;
This code gives the environment of the scene, and the effect is
//
const envMap = this.pmremGenerator.fromEquirectangular(environmentEquirectangularTexture).texture;
this.scene.environment = envMap;
This code gives the environment of the scene, and the effect is
I think the code in the editor uses the first code, but implements the second. What’s the problem.
The same code is updated from version 130 to version 131, and the effect is different?