title: How to make a line or curve emit light with Three JS?
body: <p>I'm looking for a way to make a line emit light, creating an effect such as this:</p>
  
  <p><a href="https://i.stack.imgur.com/NJ5Cj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NJ5Cj.png" alt="enter image description here"></a></p>
  
  <p>Here is what I am doing to create my line:</p>
  
  <pre><code>createLine() {
      // Create a curve with the points
      var curve = new THREE.CatmullRomCurve3(this.points);
  
      // Get the points
      var curvePoints = curve.getPoints(this.pointCount);
  
      // Create the geometry
      var curveGeometry = new THREE.BufferGeometry().setFromPoints(curvePoints);
  
      // Create the material
      var curveMaterial = new THREE.LineBasicMaterial({
          color : 0x00AAFF,
      });
  
      // Create the line
      var line = new THREE.Line(curveGeometry, curveMaterial);
  
      return line;
  }
  </code></pre>