<spanclass="pl-k">var</span> scene <spanclass="pl-k">=</span><spanclass="pl-k">new</span><spanclass="pl-en">THREE.Scene</span>();</pre></div>
var scene = new THREE.Scene();
</code>
<p>Next thing we will do is define a material. For lines we have to use [page:LineBasicMaterial] oe [page:LineDashedMaterial].</p>
<code>
//create a blue LineBasicMaterial
var material = new THREE.LineBasicMaterial({ color: 0x0000ff });
</code>
<p>Next thing we will do is define a material. For lines we have to use <code>LineBasicMaterial</code>.</p>
<p>
After material we will need a [page:Geometry] or [page:BufferGeometry] with some vertices
(it's reccomended to use a BufferGeometry as it's more performant, however for simplicity we'll use a Geometry here):
</p>
<divclass="highlight highlight-source-js"><pre><spanclass="pl-k">var</span> material <spanclass="pl-k">=</span><spanclass="pl-k">new</span><spanclass="pl-en">THREE.LineBasicMaterial</span>({