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

    Module rendering/materials/_shared/falloff

    Shared constants for the Points/Lines shifted super-Gaussian sprite falloff.

    Lives in _shared/ (not under point/ or line/) because the profile is geometry-agnostic: points evaluate it radially and lines perpendicular to the segment, and the GLSL/TSL twins of BOTH geometries — plus both picking shaders — must emit identical literals (the tsl-shader-parity harness and the codegen snapshots depend on it). Same rationale as volumetric.ts.

    The profile is

    falloff(rho) = max(0, exp(-K * rho^beta) - C) / (1 - C)
    

    on the normalized sprite coordinate rho in [0, 1], where C is the value the untruncated kernel would have at the sprite edge — so the shifted profile reaches exactly 0 there, with no discontinuity.

    FALLOFF_FLOOR
    FALLOFF_K
    INV_ONE_MINUS_FALLOFF_FLOOR
    GAUSSIAN_EQUIVALENT_TRUNCATION