VisualShaderNodeVectorFunc

package
v0.0.0-...-357ca8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

A visual shader node able to perform different functions using vectors.

Index

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 Any

type Any interface {
	gd.IsClass
	AsVisualShaderNodeVectorFunc() Instance
}

type Extension

type Extension[T gdclass.Interface] struct{ gdclass.Extension[T, Instance] }

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]) AsObject

func (self *Extension[T]) AsObject() [1]gd.Object

func (*Extension[T]) AsRefCounted

func (self *Extension[T]) AsRefCounted() [1]gd.RefCounted

func (*Extension[T]) AsResource

func (self *Extension[T]) AsResource() Resource.Instance

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

func (self *Extension[T]) AsVisualShaderNodeVectorFunc() Instance

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

type ID Object.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.

func (ID) Instance

func (id ID) Instance() (Instance, bool)

type Instance

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 New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsVisualShaderNode

func (self Instance) AsVisualShaderNode() VisualShaderNode.Instance

func (Instance) AsVisualShaderNodeVectorBase

func (self Instance) AsVisualShaderNodeVectorBase() VisualShaderNodeVectorBase.Instance

func (Instance) AsVisualShaderNodeVectorFunc

func (self Instance) AsVisualShaderNodeVectorFunc() Instance

func (Instance) Function

func (self Instance) Function() Function

The function to be performed.

func (Instance) ID

func (self Instance) ID() ID

func (Instance) SetFunction

func (self Instance) SetFunction(value Function)

SetFunction sets the property returned by [GetFunction].

func (*Instance) SetObject

func (self *Instance) SetObject(obj [1]gd.Object) bool

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL