Search Results for

    Method UpdateFrom

    UpdateFrom(Color[])

    Updates color LUT data from an array of Color. The resolution (number of colors) must match the original specification at construction time. The alpha value is ignored if ColorChannels was set to Rgb.

    Declaration
    public void UpdateFrom(Color[] colors)
    Parameters
    Type Name Description
    Color[] colors

    Color array

    UpdateFrom(Color32[])

    Updates color LUT data from an array of Color32. The resolution (number of colors) must match the original specification at construction time. The alpha value is ignored if ColorChannels was set to Rgb.

    Declaration
    public void UpdateFrom(Color32[] colors)
    Parameters
    Type Name Description
    Color32[] colors

    Color array

    UpdateFrom(byte[])

    Updates color LUT data from an array of RGB(A) values. The resolution (number of colors) must match the original specification at construction time. The expected number of bytes per color is 3 if ColorChannels was set to Rgb, 4 if it was set to Rgba.

    Declaration
    public void UpdateFrom(byte[] colors)
    Parameters
    Type Name Description
    byte[] colors

    Array of consecutive RGB(A) color tuples

    UpdateFrom(Texture2D, bool)

    Update color LUT data from a texture. Color channels and resolution must match the original.

    Declaration
    public void UpdateFrom(Texture2D lutTexture, bool flipY = true)
    Parameters
    Type Name Description
    Texture2D lutTexture

    Color LUT texture

    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.

    In This Article