OVRPassthroughColorLut
(
initialLutTexture
, flipY
)
|
Initialize the color LUT data from a texture.
Color channels are inferred from texture format. Use UpdateFrom() to update LUT data after construction.
Signature
OVRPassthroughColorLut.OVRPassthroughColorLut(Texture2D initialLutTexture, bool flipY=true) Parameters initialLutTexture: Texture2D
Texture to initialize the LUT from
flipY: bool
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.
|
OVRPassthroughColorLut
(
initialColorLut
, channels
)
|
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.
Signature
OVRPassthroughColorLut.OVRPassthroughColorLut(Color[] initialColorLut, ColorChannels channels) Parameters initialColorLut: Color[]
Color array to initialize the LUT from
channels: ColorChannels
Color channels for one color LUT entry
|
OVRPassthroughColorLut
(
initialColorLut
, channels
)
|
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.
Signature
OVRPassthroughColorLut.OVRPassthroughColorLut(Color32[] initialColorLut, ColorChannels channels) Parameters initialColorLut: Color32[]
Color32 array to initialize the LUT from
channels: ColorChannels
Color channels for one color LUT entry
|
OVRPassthroughColorLut
(
initialColorLut
, channels
)
|
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.
Signature
OVRPassthroughColorLut.OVRPassthroughColorLut(byte[] initialColorLut, ColorChannels channels) Parameters initialColorLut: byte[]
Color byte array to initialize the LUT from
channels: ColorChannels
Color channels for one color LUT entry
|
Channels
: ColorChannels
[Get] |
Signature
ColorChannels OVRPassthroughColorLut.Channels |
IsInitialized
: bool
[Get] |
Signature
bool OVRPassthroughColorLut.IsInitialized |
IsValid
: bool
[Get] |
Checks if the LUT is usable.
Can become invalid at runtime.
Signature
bool OVRPassthroughColorLut.IsValid |
Resolution
: uint
[Get] |
Signature
uint OVRPassthroughColorLut.Resolution |
Dispose
()
|
Signature
void OVRPassthroughColorLut.Dispose() Returns void |
UpdateFrom
(
colors
)
|
Update color LUT data from an array of Colors.
Color channels and resolution must match the original.
Signature
void OVRPassthroughColorLut.UpdateFrom(Color[] colors) Parameters colors: Color[]
Color array
Returns void |
UpdateFrom
(
colors
)
|
Update color LUT data from an array of Colors.
Color channels and resolution must match the original.
Signature
void OVRPassthroughColorLut.UpdateFrom(Color32[] colors) Parameters colors: Color32[]
Color array
Returns void |
UpdateFrom
(
colors
)
|
Update color LUT data from an array of Colors.
Color channels and resolution must match the original.
Signature
void OVRPassthroughColorLut.UpdateFrom(byte[] colors) Parameters colors: byte[]
Color array
Returns void |
UpdateFrom
(
lutTexture
, flipY
)
|
Update color LUT data from a texture.
Color channels and resolution must match the original.
Signature
void OVRPassthroughColorLut.UpdateFrom(Texture2D lutTexture, bool flipY=true) Parameters lutTexture: Texture2D
Color LUT texture
flipY: bool
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.
Returns void |
IsTextureSupported
(
texture
, errorMessage
)
|
Check if texture is in acceptable LUT format.
Signature
static bool OVRPassthroughColorLut.IsTextureSupported(Texture2D texture, out string errorMessage) Parameters texture: Texture2D
Texture to check
errorMessage: out string
Error message describing acceptance fail reason
Returns bool |
| Member | Value |
|---|---|
Rgb | OVRPlugin.PassthroughColorLutChannels.Rgb |
Rgba | OVRPlugin.PassthroughColorLutChannels.Rgba |