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

ColorLutTextureConverter Class

Overview

Static Public Member Functions

static void
TextureToColorByteMap
( Texture2D lut,
int channelCount,
byte[] target,
bool flipY )
Read colors from LUT texture and write them in the pre-allocated target byte array.

Details

Static Member Functions

static void OVRPassthroughColorLut.ColorLutTextureConverter.TextureToColorByteMap
( Texture2D lut,
int channelCount,
byte[] target,
bool flipY )
Read colors from LUT texture and write them in the pre-allocated target byte array.
Parameters
lut
Color LUT texture
channelCount
{RGB = 3, RGBA = 4}
target
Pre-allocated byte array that should fit all colors of the texture
flipY
Flag to inform whether the LUT texture should be flipped vertically