Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...
    • Emit the partition onto the current fragment stack — call FIRST inside the fragment Fn body so a classified-away fragment costs nothing further. Mirrors GLSL_GLASS_PARTITION_GUARD line for line:

      inFront = glassDepth < 1.0 && fragmentDepth < glassDepth
      mode 1 discards inFront; mode 2 discards !inFront

      Both discards are gated on the mode, so a graph running outside the split (mode 0) keeps every fragment; the texture sample is inside the same uniform branch.

      Parameters

      Returns void