Hi - I just npm installed newest THREE.js and now wanted to use pmremGenerator.
I imported
import * as THREE from ‘three/build/three.module.js’;
and then tried to after RGBELoader loaded:
const envMap = pmremGenerator.fromEquirectangular( texture ).texture;
But I get this error message when trying to compile:
Attempted import error: ‘pmremGenerator’ is not exported from ‘three/build/three.module.js’ (imported as ‘THREE’).
Any idea what I´m doing wrong?