RenderPass import not working

When trying to import RenderPass like so:

var THREE = (window.THREE = require("three"));

…I get this error:

…Importing other extras the same way is working fine (ex: OrbitControls, SVGLoader, etc). Any ideas?

Try moving the RenderPass include below your EffectComposer.

I think RenderPass extends THREE.Pass which is created in the EffectComposer class.

That’s correct :+1:

1 Like

Ah ok great thank you!