A material for drawing wireframe-style geometries with dashed lines.
[example:webgl_lines_dashed WebGL / lines / dashed]
var material = new THREE.LineDashedMaterial( {
color: 0xffffff,
linewidth: 1,
scale: 1,
dashSize: 3,
gapSize: 1,
} );
[page:Object parameters] - (optional) an object with one or more properties defining the material's appearance.
Any property of the material (including any property inherited from [page:Material]) can be passed in here.
The exception is the property [page:Hexadecimal color], which can be passed i as a hexadecimal
string and is *0xffffff* (white) by default. [page:Color.set]( color ) is called internally.
See the base [page:Material] class for common properties.
[page:Color] of the material, by default set to white (0xffffff).
The size of the dash. This is both the gap with the stroke. Default is *3*.
The size of the gap. Default is *1*.
Used to check whether this or derived classes are line dashed materials. Default is *true*.
You should not change this, as it used internally for optimisation.
Controls line thickness. Default is *1*.
Due to limitations of the [link:https://www.khronos.org/registry/OpenGL/specs/gl/glspec46.core.pdf OpenGL Core Profile]
with the [page:WebGLRenderer WebGL] renderer on most platforms linewidth will
always be 1 regardless of the set value.
The scale of the dashed part of a line. Default is *1*.
See the base [page:Material] class for common methods.
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]