@pixi/3d
    Preparing search index...

    Function srgbToLinear

    • Advanced

      Converts a display (sRGB) channel to linear light

      It uses a 2.2 gamma, the curve the shaders decode textures and encode their output with, rather than the piecewise sRGB curve. Material colours you set as a ColorSource are display colours, decoded with it.

      Parameters

      • channel: number

        Display channel, from 0 to 1

      Returns number

      The linear-light channel value.