[page:Material] →

[name]

A material for drawing wireframe-style geometries.

Constructor

[name]( [page:Object parameters] )

parameters is an object with one or more properties defining the material's appearance.
color — Line color in hexadecimal. Default is 0xffffff.
linewidth — Line thickness. Default is 1.
linecap — Define appearance of line ends. Default is 'round'.
linejoin — Define appearance of line joints. Default is 'round'.
vertexColors — Define how the vertices gets colored. Default is THREE.NoColors.
fog — Define whether the material color is affected by global fog settings. Default is false.

Properties

[property:Integer color]

Sets the color of the line. Default is 0xffffff.

[property:Float linewidth]

Controls line thickness. Default is 1.
Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.

[property:String linecap]

Define appearance of line ends. Possible values are "butt", "round" and "square". Default is 'round'.
This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.

[property:String linejoin]

Define appearance of line joints. Possible values are "round", "bevel" and "miter". Default is 'round'.
This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:WebGLRenderer WebGL] renderer, but does work with the [page:CanvasRenderer Canvas] renderer.

[property:Integer vertexColors]

Define how the vertices gets colored. Possible values are THREE.NoColors, THREE.FaceColors and THREE.VertexColors. Default is THREE.NoColors.
This setting might not have any effect when used with certain renderers.

[property:Boolean fog]

Define whether the material color is affected by global fog settings.
This setting might not have any effect when used with certain renderers. For example, it is ignored with the [page:CanvasRenderer Canvas] renderer, but does work with the [page:WebGLRenderer WebGL] renderer.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]