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

    Module rendering/materials/line/material-tsl

    TSL / NodeMaterial counterpart to LineMaterial.

    Mirrors the GLSL LineMaterial wrapper one-for-one — same constructor signature (LineMaterialConfig), same update methods, same applyBlendingMode + clone semantics, same CameraAwareMaterial / ColormapAwareMaterial interfaces. The host dispatch in MaterialManager.getLineMaterial picks one or the other based on caps.apiSurface, so call sites never see the divergence.

    Uniform plumbing. This class owns one persistent UniformNode per shader input via the tslNodes table. The public uniforms record exposes each node as an IUniform-shaped getter/setter proxy (see proxyIUniform in tsl-helpers.ts), so mutations to material.uniforms.uX.value land directly on node.value — no per-render .onUpdate('render') callback bridge. Matches the pattern already in use by LinePickingTSLMaterial, GSplatTSLMaterial, and PointPickingTSLMaterial.

    LineTSLMaterial