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

    Function lineJoinStyleFromUniform

    • Invert LINE_JOIN_UNIFORM — recover the style from a uLineJoin uniform value.

      The two backends encode the style differently on purpose: GLSL keeps it a runtime uniform (a ?lineJoin= override must not recompile a program) while TSL bakes it into the graph, the same asymmetry the line factories already have for uIsOrtho. A ShaderSource.webgpu factory is handed the GLSL-shaped uniform RECORD, so it needs this to pick the matching graph variant.

      undefined (no such uniform in the record) returns undefined, which the factories treat as "unauthored" and resolve through the normal precedence — NOT as 'none'.

      Parameters

      • value: number | undefined

      Returns LineJoinStyleName | undefined