I'm attempting to implement a three.js postprocessing bloom effect with 8th Wall, but I'm encountering difficulties getting it to work correctly.
In head.html, I'm including the EffectComposer by using:
<script src="http://mrdoob.github.com/three.js/examples/js/postprocessing/EffectComposer.js"></script>
Then, within my .js file, I'm retrieving the three.js scene, renderer, and camera like so:
const {scene, camera, renderer} = XR8.Threejs.xrScene()
I attempt to create the EffectComposer as follows:
composer = new THREE.EffectComposer(renderer)
However, when I run the script, I receive this error message:
undefined is not a constructor (evaluating 'new THREE.EffectComposer(renderer)')
Any assistance on resolving this issue would be greatly appreciated!