Class PassthroughColorLut
Implements
Inherited Members
Namespace: YVR.Core
Assembly: YVR.Core.Runtime.dll
Syntax
public class PassthroughColorLut : IDisposable
Constructors
Name | Description |
---|---|
PassthroughColorLut(byte[], PassthroughColorLutChannels) | Set the color LUT data from an array of |
PassthroughColorLut(Color32[], PassthroughColorLutChannels) | Set the color LUT data from an array of |
PassthroughColorLut(Color[], PassthroughColorLutChannels) | Set the color LUT data from an array of |
PassthroughColorLut(Texture2D, bool) | Initialize the color LUT data from a texture. Color channels are inferred from texture format.
Use |
Properties
Name | Description |
---|---|
Channels | The color channels contained in each of the resulting colors. Can be |
IsValid | |
Resolution | The size of one edge of the color cube spanned by the LUT. For example, a resolution of 16 means that the LUT encompasses 16 * 16 * 16 colors. This property is defined at construction time and cannot be modified. |
Methods
Name | Description |
---|---|
Dispose() | |
~PassthroughColorLut() | |
IsTextureSupported(Texture2D, out string) | Check if the given texture is formatted correctly for the use as color LUT. |
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 |
UpdateFrom(Color32[]) | Updates color LUT data from an array of |
UpdateFrom(Color[]) | Updates color LUT data from an array of |
UpdateFrom(Texture2D, bool) | Update color LUT data from a texture. Color channels and resolution must match the original. |