Documentation
¶
Overview ¶
Accept a floating-point scalar (x) to the input port and transform it according to Instance.Function.
Index ¶
- type Advanced
- type Any
- type Extension
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
- func (self *Extension[T]) AsResource() Resource.Instance
- func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance
- func (self *Extension[T]) AsVisualShaderNodeFloatFunc() Instance
- type Function
- type ID
- type Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance
- func (self Instance) AsVisualShaderNodeFloatFunc() Instance
- func (self Instance) Function() Function
- func (self Instance) ID() ID
- func (self Instance) SetFunction(value Function)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsRefCounted ¶
func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted
func (*Extension[T]) AsResource ¶
func (*Extension[T]) AsVisualShaderNode ¶
func (self *Extension[T]) AsVisualShaderNode() VisualShaderNode.Instance
func (*Extension[T]) AsVisualShaderNodeFloatFunc ¶
type Function ¶
type Function int //gd:VisualShaderNodeFloatFunc.Function
const ( // Returns the sine of the parameter. Translates to sin(x) in the Godot Shader Language. FuncSin Function = 0 // Returns the cosine of the parameter. Translates to cos(x) in the Godot Shader Language. FuncCos Function = 1 // Returns the tangent of the parameter. Translates to tan(x) in the Godot Shader Language. FuncTan Function = 2 // Returns the arc-sine of the parameter. Translates to asin(x) in the Godot Shader Language. FuncAsin Function = 3 // Returns the arc-cosine of the parameter. Translates to acos(x) in the Godot Shader Language. FuncAcos Function = 4 // Returns the arc-tangent of the parameter. Translates to atan(x) in the Godot Shader Language. FuncAtan Function = 5 // Returns the hyperbolic sine of the parameter. Translates to sinh(x) in the Godot Shader Language. FuncSinh Function = 6 // Returns the hyperbolic cosine of the parameter. Translates to cosh(x) in the Godot Shader Language. FuncCosh Function = 7 // Returns the hyperbolic tangent of the parameter. Translates to tanh(x) in the Godot Shader Language. FuncTanh Function = 8 // Returns the natural logarithm of the parameter. Translates to log(x) in the Godot Shader Language. FuncLog Function = 9 // Returns the natural exponentiation of the parameter. Translates to exp(x) in the Godot Shader Language. FuncExp Function = 10 // Returns the square root of the parameter. Translates to sqrt(x) in the Godot Shader Language. FuncSqrt Function = 11 // Returns the absolute value of the parameter. Translates to abs(x) in the Godot Shader Language. FuncAbs Function = 12 // Extracts the sign of the parameter. Translates to sign(x) in the Godot Shader Language. FuncSign Function = 13 // Finds the nearest integer less than or equal to the parameter. Translates to floor(x) in the Godot Shader Language. FuncFloor Function = 14 // Finds the nearest integer to the parameter. Translates to round(x) in the Godot Shader Language. FuncRound Function = 15 // Finds the nearest integer that is greater than or equal to the parameter. Translates to ceil(x) in the Godot Shader Language. FuncCeil Function = 16 // Computes the fractional part of the argument. Translates to fract(x) in the Godot Shader Language. FuncFract Function = 17 // Clamps the value between 0.0 and 1.0 using min(max(x, 0.0), 1.0). FuncSaturate Function = 18 // Negates the x using -(x). FuncNegate Function = 19 // Returns the arc-hyperbolic-cosine of the parameter. Translates to acosh(x) in the Godot Shader Language. FuncAcosh Function = 20 // Returns the arc-hyperbolic-sine of the parameter. Translates to asinh(x) in the Godot Shader Language. FuncAsinh Function = 21 // Returns the arc-hyperbolic-tangent of the parameter. Translates to atanh(x) in the Godot Shader Language. FuncAtanh Function = 22 // Convert a quantity in radians to degrees. Translates to degrees(x) in the Godot Shader Language. FuncDegrees Function = 23 // Returns 2 raised by the power of the parameter. Translates to exp2(x) in the Godot Shader Language. FuncExp2 Function = 24 // Returns the inverse of the square root of the parameter. Translates to inversesqrt(x) in the Godot Shader Language. FuncInverseSqrt Function = 25 // Returns the base 2 logarithm of the parameter. Translates to log2(x) in the Godot Shader Language. FuncLog2 Function = 26 // Convert a quantity in degrees to radians. Translates to radians(x) in the Godot Shader Language. FuncRadians Function = 27 // Finds reciprocal value of dividing 1 by x (i.e. 1 / x). FuncReciprocal Function = 28 // Finds the nearest even integer to the parameter. Translates to roundEven(x) in the Godot Shader Language. FuncRoundeven Function = 29 // Returns a value equal to the nearest integer to x whose absolute value is not larger than the absolute value of x. Translates to trunc(x) in the Godot Shader Language. FuncTrunc Function = 30 // Subtracts scalar x from 1 (i.e. 1 - x). FuncOneminus Function = 31 // Represents the size of the [Function] enum. FuncMax Function = 32 )
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.VisualShaderNodeFloatFunc
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsVisualShaderNode ¶
func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance