[page:Material] →
[name]
A material for drawing wireframe-style geometries with dashed lines.
Examples
[example:webgl_lines_dashed WebGL / lines / dashed]
[example:canvas_lines_dashed Canvas / lines /dashed]
var material = new THREE.LineDashedMaterial( {
color: 0xffffff,
linewidth: 1,
scale: 1,
dashSize: 3,
gapSize: 1,
} );
Constructor
[name]( [param:Object parameters] )
[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.
Properties
See the base [page:Material] class for common properties.
[property:Color color]
[page:Color] of the material, by default set to white (0xffffff).
[property:number dashSize]
The size of the dash. This is both the gap with the stroke. Default is *3*.
[property:number gapSize]
The size of the gap. Default is *1*.
[property:Boolean isLineDashedMaterial]
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.
[property:Boolean lights]
Whether the material is affected by lights. Default is *false*.
[property:Float linewidth]
Controls line thickness. Default is *1*.
Due to limitations in the [link:https://code.google.com/p/angleproject ANGLE layer],
with the [page:WebGLRenderer WebGL] renderer on Windows platforms linewidth will
always be 1 regardless of the set value.
[property:number scale]
The scale of the dashed part of a line. Default is *1*.
Methods
See the base [page:Material] class for common methods.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]