March 2015
Beginner to intermediate
422 pages
9h 9m
English
The last couple of materials we're going to look at can only be used on one specific geometry: THREE.Line. As the name implies, this is just a single line that only consists of vertices and doesn't contain any faces. Three.js provides two different materials you can use on a line, which are as follows:
THREE.LineBasicMaterial: The basic material for a line allows you to set the colors, linewidth, linecap, and linejoin propertiesTHREE.LineDashedMaterial: This has the same properties as THREE.LineBasicMaterial but allows you to create a dash effect by specifying dash and spacing sizesWe'll start with the basic variant and after that look at the dashed variant.
The materials available ...
Read now
Unlock full access