reckfellENGINE

VisualShaderNodeDerivativeFunc

Calculates a derivative within the visual shader graph.

On this page
class VisualShaderNodeDerivativeFuncReckfellSharpInherits VisualShaderNode

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
# VisualShaderNodeDerivativeFunc
C#
public VisualShaderNodeDerivativeFunc();

Properties3

FunctionProperty
# Function
C#
public VisualShaderNodeDerivativeFunc.FunctionEnum Function { get; set; }

A derivative function type.

OpTypeProperty
# OpType
C#
public VisualShaderNodeDerivativeFunc.OpTypeEnum OpType { get; set; }

A type of operands and returned value.

PrecisionProperty
# Precision
C#
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
# GetFunction
C#
public VisualShaderNodeDerivativeFunc.FunctionEnum GetFunction();
Returns VisualShaderNodeDerivativeFunc.FunctionEnum
GetOpTypeVisualShaderNodeDerivativeFunc.OpTypeEnum
# GetOpType
C#
public VisualShaderNodeDerivativeFunc.OpTypeEnum GetOpType();
Returns VisualShaderNodeDerivativeFunc.OpTypeEnum
GetPrecisionVisualShaderNodeDerivativeFunc.PrecisionEnum
# GetPrecision
C#
public VisualShaderNodeDerivativeFunc.PrecisionEnum GetPrecision();
Returns VisualShaderNodeDerivativeFunc.PrecisionEnum
SetFunctionvoid
# SetFunction
C#
public void SetFunction(VisualShaderNodeDerivativeFunc.FunctionEnum func);
Parameters
NameTypeDefault
funcVisualShaderNodeDerivativeFunc.FunctionEnum—
SetOpTypevoid
# SetOpType
C#
public void SetOpType(VisualShaderNodeDerivativeFunc.OpTypeEnum type);
Parameters
NameTypeDefault
typeVisualShaderNodeDerivativeFunc.OpTypeEnum—
SetPrecisionvoid
# SetPrecision
C#
public void SetPrecision(VisualShaderNodeDerivativeFunc.PrecisionEnum precision);
Parameters
NameTypeDefault
precisionVisualShaderNodeDerivativeFunc.PrecisionEnum—

VisualShaderNodeDerivativeFunc.FunctionEnum

ValueDescription
Max = 3

Represents the size of the VisualShaderNodeDerivativeFunc.FunctionEnum enum.

Sum = 0

Sum of absolute derivative in x and y.

X = 1

Derivative in x using local differencing.

Y = 2

Derivative in y using local differencing.

VisualShaderNodeDerivativeFunc.OpTypeEnum

ValueDescription
Max = 4

Represents the size of the VisualShaderNodeDerivativeFunc.OpTypeEnum enum.

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

ValueDescription
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 VisualShaderNodeDerivativeFunc.PrecisionEnum.Fine, but may not be suitable when more precision is needed. This is equivalent to using dFdxCoarse() or dFdyCoarse() in text shaders.

Fine = 2

The derivative will be calculated using the current fragment and its immediate neighbors. This tends to be slower than using VisualShaderNodeDerivativeFunc.PrecisionEnum.Coarse, but may be necessary when more precision is needed. This is equivalent to using dFdxFine() or dFdyFine() in text shaders.

Max = 3

Represents the size of the VisualShaderNodeDerivativeFunc.PrecisionEnum enum.

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 dFdx() or dFdy() in text shaders.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.