A special material for drawing lines. Intended to use with MeshLine and MeshLineIndexed meshes.
parameters — (optional) an object with one or more properties defining the material's appearance.
Any property of the material (including any property inherited from Material) can be passed in here.
See the base Material class for common properties.
A texture that controls the opacity along the line (requires useAlphaMap set to true).
A threshold alpha value to perform discard (from
Used to check whether this or derived classes are mesh line materials. Default is true. You should not change this, as it's used internally for optimization.
Line width (if sizeAttenuation is true, it's world units; else is screen pixels).
A texture that controls the color along the line (requires useMap set to true).
Line alpha value (from
A vector for scaling map and alphaMap UV coordinates.
A vector specifying the canvas size.
Make line width constant (if
0) or not (if
Use the alphaMap texture.
Use the map texture.
Control partial visibility along the line (from
1) by changing its alpha value.
See the base RawShaderMaterial class for common methods.
For more info on how to obtain the source code of this module see this page.