Makio MeshLineA performant and customizable line solution for Three.js.
TSL-powered screen strokes and world-space road surfaces.
TSL-powered screen strokes and world-space road surfaces.
Makio MeshLine is built for the cases where THREE.Line is too limited and older MeshLine approaches feel dated. It gives you wide and thick lines for Three.js with gradients, dashes, textures, shadows, GPU-driven positions, and instancing, all wrapped in a small fluent API.
It is designed around Three.js TSL and WebGPURenderer, so the same line system works across WebGPU and WebGL2 backends while staying friendly to creative coding, interactive scenes, data visualization, and stylized rendering.
Version 2
This site documents the 2.0.0 API. Existing V1 users should read Migrating from v1 to V2 before upgrading.
circlePositions, squarePositions, rectanglePositions, sineWavePositions, and straightLine.| Capability | Included |
|---|---|
| Wide and thick lines | Yes |
| Gradients and dashed lines | Yes |
| Texture and alpha maps | Yes |
| TSL material hooks | Yes |
| GPU-driven positions | Yes |
| Instancing | Yes |
| Shadow casting | Yes |
| World-space road surfaces | Yes |
| Surface bevel/round joins and caps | Yes |
WebGPU and WebGL2 via WebGPURenderer | Yes |
| Native-WebGPU chunk culling | Optional, Three.js r183+ |
| Point-centric indirect GPU path + screen topology | Experimental, Three.js r183+ |