[page:Material] →

[name]

A material for drawing wireframe-style geometries.

Examples

[example:webgl_buffergeometry_drawcalls WebGL / buffergeometry / drawcalls]
[example:webgl_buffergeometry_lines WebGL / buffergeometry / lines]
[example:webgl_buffergeometry_lines_indexed WebGL / buffergeometry / lines / indexed]
[example:webgl_decals WebGL / decals]
[example:webgl_geometry_nurbs WebGL / geometry / nurbs]
[example:webgl_geometry_shapes WebGL / geometry / shapes]
[example:webgl_geometry_spline_editor WebGL / geometry / spline / editor]
[example:webgl_interactive_buffergeometry WebGL / interactive / buffergeometry]
[example:webgl_interactive_voxelpainter WebGL / interactive / voxelpainter]
[example:webgl_lines_colors WebGL / lines / colors]
[example:webgl_lines_cubes WebGL / lines / cubes]
[example:webgl_lines_dashed WebGL / lines / dashed]
[example:webgl_lines_sphere WebGL / lines / sphere]
[example:webgl_lines_splines WebGL / lines / splines]
[example:webgl_materials WebGL / materials]
[example:webgl_physics_rope WebGL / phyics / rope]
var line_material = new THREE.LineBasicMaterial( { color: 0x303030, lineWidth: 1, linecap: 'round', //ignored by WebGLRenderer linejoin: 'round' //ignored by WebGLRenderer } );

Constructor

[name]( [page: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.

Properties

See the base [page:Material] class for common properties.

[property:Integer color]

Color of the line. Default is 0xffffff.

[property:Boolean isLineBasicMaterial]

Used to check whether this or derived classes are line basic 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: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.

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]