Rainbow glow effects

Ah, I thought I took background in count. Obviously, I didn’t )
Have a look: Tetrahedra (fat lines, batching, texelFetch)
The first link to codepen.

let bg = {
  on: 0x321632,
  off: 0x000000
}
let scene = new THREE.Scene();
scene.background = new THREE.Color(bg.off);

. . .
// in the animation loop
  gu.globalBloom.value = 1;
  scene.background.set(bg.off); // make it black
  bloomComposer.render();
  gu.globalBloom.value = 0;
  scene.background.set(bg.on); // set to the desired value
  finalComposer.render();
1 Like