Search Results for

    Constructor PassthroughColorLut

    PassthroughColorLut(Texture2D, bool)

    Initialize the color LUT data from a texture. Color channels are inferred from texture format. Use UpdateFrom() to update LUT data after construction.

    Declaration
    public PassthroughColorLut(Texture2D initialLutTexture, bool flipY = true)
    Parameters
    Type Name Description
    Texture2D initialLutTexture

    Texture to initialize the LUT from

    bool flipY

    Flag to inform whether the LUT texture should be flipped vertically. This is needed for LUT images which have color (0, 0, 0) in the top-left corner. Some color grading systems, e.g. Unity post-processing, have color (0, 0, 0) in the bottom-left corner, in which case flipping is not needed.

    PassthroughColorLut(Color[], PassthroughColorLutChannels)

    Set the color LUT data from an array of Color. The resolution is inferred from the array size, thus the size needs to be a result of resolution = size ^ 3 * numColorChannels, where numColorChannels depends on channels. Use UpdateFrom() to update color LUT data after construction.

    Declaration
    public PassthroughColorLut(Color[] initialColorLut, PassthroughColorLutChannels channels)
    Parameters
    Type Name Description
    Color[] initialColorLut

    Color array to initialize the LUT from

    PassthroughColorLutChannels channels

    Color channels for one color LUT entry

    PassthroughColorLut(Color32[], PassthroughColorLutChannels)

    Set the color LUT data from an array of Color. The resolution is inferred from the array size, thus the size needs to be a result of resolution = size ^ 3 * numColorChannels, where numColorChannels depends on channels. Use UpdateFrom() to update color LUT data after construction.

    Declaration
    public PassthroughColorLut(Color32[] initialColorLut, PassthroughColorLutChannels channels)
    Parameters
    Type Name Description
    Color32[] initialColorLut

    Color32 array to initialize the LUT from

    PassthroughColorLutChannels channels

    Color channels for one color LUT entry

    PassthroughColorLut(byte[], PassthroughColorLutChannels)

    Set the color LUT data from an array of Color. The resolution is inferred from the array size, thus the size needs to be a result of resolution = size ^ 3 * numColorChannels, where numColorChannels depends on channels. Use UpdateFrom() to update color LUT data after construction.

    Declaration
    public PassthroughColorLut(byte[] initialColorLut, PassthroughColorLutChannels channels)
    Parameters
    Type Name Description
    byte[] initialColorLut

    Color byte array to initialize the LUT from

    PassthroughColorLutChannels channels

    Color channels for one color LUT entry

    In This Article