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

    Function perspectiveNearFadeTSL

    • Unified perspective near-plane fade (runtime-uniform variant, for the point/gsplat graphs whose ortho flag is the uIsOrtho uniform). Mirrors GLSL perspectiveNearFade in glsl-lib.ts: perspective = 0.0 behind the camera, smoothstep across [nearCull, 2*nearCull]; ortho = 1.0 always (NDC clipping is the sole cull authority). Callers reject the vertex when the result < 0.01 and multiply the surviving amplitude/alpha/brightness by it.

      Parameters

      • uIsOrtho: any
      • viewZ: any
      • uNearCull: any

      Returns any