Documentation
¶
Overview ¶
A visual shader node able to perform different functions using vectors.
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]) AsVisualShaderNodeVectorBase() VisualShaderNodeVectorBase.Instance
- func (self *Extension[T]) AsVisualShaderNodeVectorFunc() 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) AsVisualShaderNodeVectorBase() VisualShaderNodeVectorBase.Instance
- func (self Instance) AsVisualShaderNodeVectorFunc() 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]) AsVisualShaderNodeVectorBase ¶
func (self *Extension[T]) AsVisualShaderNodeVectorBase() VisualShaderNodeVectorBase.Instance
func (*Extension[T]) AsVisualShaderNodeVectorFunc ¶
type Function ¶
type Function int //gd:VisualShaderNodeVectorFunc.Function
const ( // Normalizes the vector so that it has a length of 1 but points in the same direction. FuncNormalize Function = 0 // Clamps the value between 0.0 and 1.0. FuncSaturate Function = 1 // Returns the opposite value of the parameter. FuncNegate Function = 2 // Returns 1/vector. FuncReciprocal Function = 3 // Returns the absolute value of the parameter. FuncAbs Function = 4 // Returns the arc-cosine of the parameter. FuncAcos Function = 5 // Returns the inverse hyperbolic cosine of the parameter. FuncAcosh Function = 6 // Returns the arc-sine of the parameter. FuncAsin Function = 7 // Returns the inverse hyperbolic sine of the parameter. FuncAsinh Function = 8 // Returns the arc-tangent of the parameter. FuncAtan Function = 9 // Returns the inverse hyperbolic tangent of the parameter. FuncAtanh Function = 10 // Finds the nearest integer that is greater than or equal to the parameter. FuncCeil Function = 11 // Returns the cosine of the parameter. FuncCos Function = 12 // Returns the hyperbolic cosine of the parameter. FuncCosh Function = 13 // Converts a quantity in radians to degrees. FuncDegrees Function = 14 // Base-e Exponential. FuncExp Function = 15 // Base-2 Exponential. FuncExp2 Function = 16 // Finds the nearest integer less than or equal to the parameter. FuncFloor Function = 17 // Computes the fractional part of the argument. FuncFract Function = 18 // Returns the inverse of the square root of the parameter. FuncInverseSqrt Function = 19 // Natural logarithm. FuncLog Function = 20 // Base-2 logarithm. FuncLog2 Function = 21 // Converts a quantity in degrees to radians. FuncRadians Function = 22 // Finds the nearest integer to the parameter. FuncRound Function = 23 // Finds the nearest even integer to the parameter. FuncRoundeven Function = 24 // Extracts the sign of the parameter, i.e. returns -1 if the parameter is negative, 1 if it's positive and 0 otherwise. FuncSign Function = 25 // Returns the sine of the parameter. FuncSin Function = 26 // Returns the hyperbolic sine of the parameter. FuncSinh Function = 27 // Returns the square root of the parameter. FuncSqrt Function = 28 // Returns the tangent of the parameter. FuncTan Function = 29 // Returns the hyperbolic tangent of the parameter. FuncTanh Function = 30 // Returns a value equal to the nearest integer to the parameter whose absolute value is not larger than the absolute value of the parameter. FuncTrunc Function = 31 // Returns 1.0 - vector. FuncOneminus Function = 32 // Represents the size of the [Function] enum. FuncMax Function = 33 )
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.VisualShaderNodeVectorFunc
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
func (Instance) AsVisualShaderNodeVectorBase ¶
func (self Instance) AsVisualShaderNodeVectorBase() VisualShaderNodeVectorBase.Instance
func (Instance) AsVisualShaderNodeVectorFunc ¶
func (Instance) SetFunction ¶
SetFunction sets the property returned by [GetFunction].