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

    Function linearizeSRGBFloat

    • Linearize an sRGB-encoded float texture in place, leaving alpha alone.

      Alpha is coverage, not colour: it is never gamma-encoded, and running it through the EOTF would make every partially transparent texel more transparent than authored. The same exclusion the writer applies when it computes texture_data_range over RGB only.

      Parameters

      • pixels: Float32Array
      • channels: number

      Returns Float32Array