VisualShaderNodeColorFunc
A Color function to be used within the visual shader graph.
A Color function to be used within the visual shader graph.
Accept a Color to the input port and transform it according to VisualShaderNodeColorFunc.Function.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VisualShaderNodeColorFuncConstructor
public VisualShaderNodeColorFunc();Properties1
FunctionProperty
public VisualShaderNodeColorFunc.FunctionEnum Function { get; set; }A function to be applied to the input color.
Methods2
GetFunctionVisualShaderNodeColorFunc.FunctionEnum
public VisualShaderNodeColorFunc.FunctionEnum GetFunction();VisualShaderNodeColorFunc.FunctionEnumSetFunctionvoid
public void SetFunction(VisualShaderNodeColorFunc.FunctionEnum func);| Name | Type | Default |
|---|---|---|
func | VisualShaderNodeColorFunc.FunctionEnum | — |
VisualShaderNodeColorFunc.FunctionEnum
| Value | Description |
|---|---|
Grayscale = 0 | Converts the color to grayscale using the following formula: |
Hsv2Rgb = 1 | Converts HSV vector to RGB equivalent. |
LinearToSrgb = 4 | Converts color from linear encoding to nonlinear sRGB encoding using the following formula: The Compatibility renderer uses a simpler formula that may produce undefined behavior with negative input values: |
Max = 6 | Represents the size of the |
Rgb2Hsv = 2 | Converts RGB vector to HSV equivalent. |
Sepia = 3 | Applies sepia tone effect using the following formula: |
SrgbToLinear = 5 | Converts color from nonlinear sRGB encoding to linear encoding using the following formula: The Compatibility renderer uses a simpler formula that behaves poorly with negative input values: |