[page:Material] →

# [name]

A material for drawing wireframe-style geometries with dashed lines.

## Examples

[example:webgl_lines_dashed WebGL / 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:Float linewidth]

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.

### [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]