Contents

cube0Data

The cube texture data to use as a color lookup table.

Declaration

var cube0Data: Data { get set }

Discussion

This filter maps color values in the input image to new color values using a three-dimensional color lookup table. For each RGBA pixel in the input image, the filter uses the R, G, and B component values as indices to identify a location in the table; the RGBA value at that location becomes the RGBA value of the output pixel.

Use the cubeData parameter to provide data formatted for use as a color lookup table, and the inputCubeDimension parameter to specify the size of the table. This data should be an array of texel values in 32-bit floating-point RGBA linear premultiplied format. The inputCubeDimension parameter identifies the size of the cube by specifying the length of one side, so the size of the array should be cubeDimension cubed times the size of a single texel value. In the color table, the R component varies fastest, followed by G, then B.

See Also

Instance Properties