Struct XrColor4f
Unless otherwise specified, colors are encoded as linear (not with sRGB nor other gamma compression) values with individual components being in the range of 0.0 through 1.0, and without the RGB components being premultiplied by the alpha component.
If color encoding is specified as being premultiplied by the alpha component, the RGB components are set to zero if the alpha component is zero.
Inherited Members
Namespace: VIVE.OpenXR
Assembly: VIVE.OpenXR.dll
Syntax
public struct XrColor4f
Constructors
XrColor4f(float, float, float, float)
Declaration
public XrColor4f(float in_r, float in_g, float in_b, float in_a)
Parameters
Type | Name | Description |
---|---|---|
float | in_r | The red component of the color. |
float | in_g | The green component of the color. |
float | in_b | The blue component of the color. |
float | in_a | The alpha component of the color. |
Fields
a
The alpha component of the color.
Declaration
public float a
Field Value
Type | Description |
---|---|
float |
b
The blue component of the color.
Declaration
public float b
Field Value
Type | Description |
---|---|
float |
g
The green component of the color.
Declaration
public float g
Field Value
Type | Description |
---|---|
float |
r
The red component of the color.
Declaration
public float r
Field Value
Type | Description |
---|---|
float |