I think there are a couple things missing there:
- You do need
alpha: true
on the scene, as you mention. - Don’t change
setClearColor
. - If you’re using EffectComposer, there is some extra work required to make it allow a transparent background, see these comments. three.js - How do I stop EffectComposer from destroying my transparent background? - Stack Overflow
I’d recommend starting with renderer.render( scene, camera )
instead of composer.render()
just to make sure you have the first two parts working.