THREE.CubemapGenerator is not a constructor

I’m using typerscript and Three v 0.99

In my packgake.json
And way import

I must using this :frowning:

If you want to convert an equirectangular panorama into a cubemap texture, use THREE.CubemapGenerator from the examples. It’s not necessary to use a external project for this. However, you have to convert the file into a module so you can import it in your project. THREE.CubemapGenerator is no part of the core.

1 Like

Yeb, I only had this problems when writing modules