LineBasicNodeMaterial
LineBasicNodeMaterial
Node-based variant of LineBasicMaterial for rendering line primitives (Line, LineSegments).
Core Advantages
Seamlessly integrates with TSL. Drive appearance procedurally via nodes such as colorNode, beyond fixed parameters. See MeshBasicNodeMaterial example for colorNode usage on node materials.
Common Uses
Object outlines / wireframes
Helpers like grids or axes
Path or trajectory visualization
How to adjust
Supports the same properties as LineBasicMaterial (color, linewidth, linecap, linejoin, vertexColors) since it adopts LineBasicMaterial defaults and value setting. Note: linewidth has no effect on most WebGL platforms; use Line2NodeMaterial for controllable widths. In node workflows prefer driving color via colorNode.
Code Examples
1// Wireframe box using EdgesGeometry + LineSegments
2const geom = new EdgesGeometry( new BoxGeometry(1, 1, 1) );
3const mat = new LineBasicNodeMaterial({ color: 'white' });
4const wire = new LineSegments( geom, mat );
5scene.add( wire );