Method SetChannelColorMask
SetChannelColorMask(Channel, bool, float)
Sets a specific texture channel, for example Channel.R
, to a specific color
. The channel ignores input tensor values.
Declaration
public TextureTransform SetChannelColorMask(Channel c, bool mask, float color)
Parameters
Type | Name | Description |
---|---|---|
Channel | c | The color channel to set. |
bool | mask | When the value is |
float | color | The color value to use. |
Returns
Type | Description |
---|---|
TextureTransform |
|
SetChannelColorMask(bool, bool, bool, bool, Color)
Sets which channels in the output texture ignore input tensor values and write a specific color
instead.
The method returns a TextureTransform
that you can use to chain other methods.
Declaration
public TextureTransform SetChannelColorMask(bool maskR, bool maskG, bool maskB, bool maskA, Color color)
Parameters
Type | Name | Description |
---|---|---|
bool | maskR | The mask value for the red channel. |
bool | maskG | The mask value for the green channel. |
bool | maskB | The mask value for the blue channel. |
bool | maskA | The mask value for the alpha channel. |
Color | color | The color value to use when masking. |
Returns
Type | Description |
---|---|
TextureTransform |
|