Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Module rendering/materials/line/material-glsl

    Line Material for Luxar

    Specialized THREE.ShaderMaterial for rendering thick lines using instanced quads. Uses the semicircle kernel model for mathematically correct joints with additive blending.

    Key features:

    • Instanced quad geometry (4 vertices per segment)
    • World-space line width
    • Parabolic intensity falloff: (1 - p²)^sharpness
    • Cap factor for seamless joints (0.5 at endpoints, 1.0 in body)
    • Per-vertex attributes (color, width, sharpness)
    LineMaterial
    LineMaterialConfig
    LineMaterialUniforms
    isGammaOne → isGammaOne
    isNoGOG → isNoGOG