I'm trying to import modules so I can use the bloom effect, but I keep getting this error. The .js were copied from three/examples/js/ so they are up to date.
index.html:
<script src="../module/three.js";></script>
<script src="../module/EffectComposer.js"></script>
<script src="../module/CopyShader.js"></script>
<script src="../module/ShaderPass.js"></script>
<script src="../module/RenderPass.js"></script>
<script src="../module/UnrealBloomPass.js"></script>
<script src="../module/MaskPass.js"></script>
<script src="../module/Pass.js"></script>
<script src="../module/LuminosityHighPassShader.js"></script>
<script type="module" src="index.js"></script>
index.js:
import * as THREE from "../module/three.module.js";
...
//bloom renderer
const renderScene = new THREE.RenderPass(scene, camera);
and it results in the following error: Uncaught TypeError: THREE.RenderPass is not a constructor
How am I supposed to do it in the correct way?