VisualShaderNodeDerivativeFunc
Calculates a derivative within the visual shader graph.
Calculates a derivative within the visual shader graph.
This node is only available in Fragment and Light visual shaders.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VisualShaderNodeDerivativeFuncConstructor
public VisualShaderNodeDerivativeFunc();Properties3
FunctionProperty
public VisualShaderNodeDerivativeFunc.FunctionEnum Function { get; set; }A derivative function type.
OpTypeProperty
public VisualShaderNodeDerivativeFunc.OpTypeEnum OpType { get; set; }A type of operands and returned value.
PrecisionProperty
public VisualShaderNodeDerivativeFunc.PrecisionEnum Precision { get; set; }Sets the level of precision to use for the derivative function. When using the Compatibility renderer, this setting has no effect.
Methods6
GetFunctionVisualShaderNodeDerivativeFunc.FunctionEnum
public VisualShaderNodeDerivativeFunc.FunctionEnum GetFunction();VisualShaderNodeDerivativeFunc.FunctionEnumGetOpTypeVisualShaderNodeDerivativeFunc.OpTypeEnum
public VisualShaderNodeDerivativeFunc.OpTypeEnum GetOpType();VisualShaderNodeDerivativeFunc.OpTypeEnumGetPrecisionVisualShaderNodeDerivativeFunc.PrecisionEnum
public VisualShaderNodeDerivativeFunc.PrecisionEnum GetPrecision();VisualShaderNodeDerivativeFunc.PrecisionEnumSetFunctionvoid
public void SetFunction(VisualShaderNodeDerivativeFunc.FunctionEnum func);| Name | Type | Default |
|---|---|---|
func | VisualShaderNodeDerivativeFunc.FunctionEnum | — |
SetOpTypevoid
public void SetOpType(VisualShaderNodeDerivativeFunc.OpTypeEnum type);| Name | Type | Default |
|---|---|---|
type | VisualShaderNodeDerivativeFunc.OpTypeEnum | — |
SetPrecisionvoid
public void SetPrecision(VisualShaderNodeDerivativeFunc.PrecisionEnum precision);| Name | Type | Default |
|---|---|---|
precision | VisualShaderNodeDerivativeFunc.PrecisionEnum | — |
VisualShaderNodeDerivativeFunc.FunctionEnum
| Value | Description |
|---|---|
Max = 3 | Represents the size of the |
Sum = 0 | Sum of absolute derivative in |
X = 1 | Derivative in |
Y = 2 | Derivative in |
VisualShaderNodeDerivativeFunc.OpTypeEnum
| Value | Description |
|---|---|
Max = 4 | Represents the size of the |
Scalar = 0 | A floating-point scalar. |
Vector2D = 1 | A 2D vector type. |
Vector3D = 2 | A 3D vector type. |
Vector4D = 3 | A 4D vector type. |
VisualShaderNodeDerivativeFunc.PrecisionEnum
| Value | Description |
|---|---|
Coarse = 1 | The derivative will be calculated using the current fragment's neighbors (which may not include the current fragment). This tends to be faster than using |
Fine = 2 | The derivative will be calculated using the current fragment and its immediate neighbors. This tends to be slower than using |
Max = 3 | Represents the size of the |
None = 0 | No precision is specified, the GPU driver is allowed to use whatever level of precision it chooses. This is the default option and is equivalent to using |