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

    Function createLineQuadGeometry

    • Create the base quad geometry for line instances.

      Each line segment is rendered as a quad with 4 vertices:

      • (-1, -1): Start, bottom edge
      • ( 1, -1): End, bottom edge
      • (-1, 1): Start, top edge
      • ( 1, 1): End, top edge

      The vertex shader expands these in screen space based on line width. Range and attribute name match createPointQuadGeometry and createGSplatQuadGeometry exactly so the three geometry types share one vertex-shader idiom for sprite expansion.

      Returns InstancedBufferGeometry