API reference
API reference
Select your platform
No SDKs available
No versions available

OVRPassthroughColorLut Class

Extends IDisposable
Passthrough Color Look-Up Tables (LUTs).

Member Enumerations

Enumeration ColorChannels

Rgb
= OVRPlugin.PassthroughColorLutChannels.Rgb
Rgba
= OVRPlugin.PassthroughColorLutChannels.Rgba

Properties

uint Resolution[Get]
ColorChannels Channels[Get]
bool IsInitialized[Get]
Checks if the LUT is usable.
Can become invalid at runtime.

Member Functions

Initialize the color LUT data from a texture.
Color channels are inferred from texture format. Use UpdateFrom() to update LUT data after construction.
Parameters
initialLutTexture
Texture to initialize the LUT from
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.
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.
Parameters
initialColorLut
Color array to initialize the LUT from
channels
Color channels for one color LUT entry
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.
Parameters
initialColorLut
Color32 array to initialize the LUT from
channels
Color channels for one color LUT entry
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.
Parameters
initialColorLut
Color byte array to initialize the LUT from
channels
Color channels for one color LUT entry
Update color LUT data from an array of Colors.
Color channels and resolution must match the original.
Parameters
colors
Color array
Update color LUT data from an array of Colors.
Color channels and resolution must match the original.
Parameters
colors
Color array
Update color LUT data from an array of Colors.
Color channels and resolution must match the original.
Parameters
colors
Color array
Update color LUT data from a texture.
Color channels and resolution must match the original.
Parameters
lutTexture
Color LUT texture
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.
void Dispose ( )

Static Member Functions

Check if texture is in acceptable LUT format.
Parameters
texture
Texture to check
errorMessage
Error message describing acceptance fail reason
Returns
Did you find this page helpful?
Thumbs up icon
Thumbs down icon