Inheritance #

RefCounted

- AESContext
- AStar2D
- AStar3D
- AStarGrid2D
- AudioEffectInstance (1)
- AudioSample
- AudioSamplePlayback
- AudioStreamPlayback (5)
- CameraFeed
- CharFXTransform
- ConfigFile
- Crypto
- DTLSServer
- DirAccess
- ENetConnection
- EditorContextMenuPlugin
- EditorDebuggerPlugin
- EditorDebuggerSession
- EditorExportPlatform (6)
- EditorExportPlugin
- EditorExportPreset
- EditorFeatureProfile
- EditorFileSystemImportFormatSupportQuery
- EditorInspectorPlugin
- EditorResourceConversionPlugin
- EditorResourcePreviewGenerator
- EditorResourceTooltipPlugin
- EditorSceneFormatImporter (4)
- EditorScenePostImport
- EditorScenePostImportPlugin
- EditorScript
- EditorTranslationParserPlugin
- EncodedObjectAsID
- EngineProfiler
- Expression
- FileAccess
- GLTFObjectModelProperty
- HMACContext
- HTTPClient
- HashingContext
- ImageFormatLoader (1)
- JavaClass
- JavaObject
- JavaScriptObject
- KinematicCollision2D
- KinematicCollision3D
- Lightmapper (1)
- MeshConvexDecompositionSettings
- MeshDataTool
- MultiplayerAPI (2)
- Mutex
- NavigationPathQueryParameters2D
- NavigationPathQueryParameters3D
- NavigationPathQueryResult2D
- NavigationPathQueryResult3D
- Node3DGizmo (1)
- OggPacketSequencePlayback
- OpenXRAPIExtension
- PCKPacker
- PackedDataContainerRef
- PacketPeer (8)
- PhysicsPointQueryParameters2D
- PhysicsPointQueryParameters3D
- PhysicsRayQueryParameters2D
- PhysicsRayQueryParameters3D
- PhysicsShapeQueryParameters2D
- PhysicsShapeQueryParameters3D
- PhysicsTestMotionParameters2D
- PhysicsTestMotionParameters3D
- PhysicsTestMotionResult2D
- PhysicsTestMotionResult3D
- RDAttachmentFormat
- RDFramebufferPass
- RDPipelineColorBlendState
- RDPipelineColorBlendStateAttachment
- RDPipelineDepthStencilState
- RDPipelineMultisampleState
- RDPipelineRasterizationState
- RDPipelineSpecializationConstant
- RDSamplerState
- RDShaderSource
- RDTextureFormat
- RDTextureView
- RDUniform
- RDVertexAttribute
- RandomNumberGenerator
- RegEx
- RegExMatch
- RenderSceneBuffers (2)
- RenderSceneBuffersConfiguration
- Resource (103)
- ResourceFormatLoader
- ResourceFormatSaver
- ResourceImporter (16)
- SceneState
- SceneTreeTimer
- Semaphore
- SkinReference
- StreamPeer (5)
- SurfaceTool
- TCPServer
- TLSOptions
- TextLine
- TextParagraph
- TextServer (1)
- Thread
- TranslationDomain
- TriangleMesh
- Tween
- Tweener (5)
- UDPServer
- UPNP
- UPNPDevice
- WeakRef
- WebRTCPeerConnection (1)
- XMLParser
- XRInterface (4)
- XRPose
- XRTracker (2)
- ZIPPacker
- ZIPReader
Resource

- Animation
- AnimationLibrary
- AnimationNode (6)
- AnimationNodeStateMachinePlayback
- AnimationNodeStateMachineTransition
- AudioBusLayout
- AudioEffect (17)
- AudioStream (10)
- BitMap
- BoneMap
- ButtonGroup
- CameraAttributes (2)
- ColorPalette
- Compositor
- CompositorEffect
- CryptoKey
- Curve
- Curve2D
- Curve3D
- EditorNode3DGizmoPlugin
- EditorSettings
- Environment
- Font (3)
- GDExtension
- GLTFAccessor
- GLTFAnimation
- GLTFBufferView
- GLTFCamera
- GLTFDocument (1)
- GLTFDocumentExtension (1)
- GLTFLight
- GLTFMesh
- GLTFNode
- GLTFPhysicsBody
- GLTFPhysicsShape
- GLTFSkeleton
- GLTFSkin
- GLTFSpecGloss
- GLTFState (1)
- GLTFTexture
- GLTFTextureSampler
- Gradient
- Image
- ImporterMesh
- InputEvent (6)
- JSON
- LabelSettings
- LightmapGIData
- Material (9)
- Mesh (4)
- MeshLibrary
- MissingResource
- MultiMesh
- NavigationMesh
- NavigationMeshSourceGeometryData2D
- NavigationMeshSourceGeometryData3D
- NavigationPolygon
- Noise (1)
- Occluder3D (5)
- OccluderPolygon2D
- OggPacketSequence
- OpenXRAction
- OpenXRActionMap
- OpenXRActionSet
- OpenXRBindingModifier (2)
- OpenXRHapticBase (1)
- OpenXRIPBinding
- OpenXRInteractionProfile
- PackedDataContainer
- PackedScene
- PhysicsMaterial
- PolygonPathFinder
- RDShaderFile
- RDShaderSPIRV
- RichTextEffect
- SceneReplicationConfig
- Script (3)
- Shader (1)
- ShaderInclude
- Shape2D (8)
- Shape3D (9)
- Shortcut
- SkeletonModification2D (7)
- SkeletonModificationStack2D
- SkeletonProfile (1)
- Skin
- Sky
- SpriteFrames
- StyleBox (4)
- SyntaxHighlighter (2)
- Texture (3)
- Theme
- TileMapPattern
- TileSet
- TileSetSource (2)
- Translation (1)
- VideoStream (1)
- VideoStreamPlayback
- VisualShaderNode (62)
- VoxelGIData
- World2D
- World3D
- X509Certificate
VisualShaderNode

- VisualShaderNodeBillboard
- VisualShaderNodeClamp
- VisualShaderNodeColorFunc
- VisualShaderNodeColorOp
- VisualShaderNodeCompare
- VisualShaderNodeConstant (9)
- VisualShaderNodeCubemap
- VisualShaderNodeCustom
- VisualShaderNodeDerivativeFunc
- VisualShaderNodeDeterminant
- VisualShaderNodeDistanceFade
- VisualShaderNodeDotProduct
- VisualShaderNodeFloatFunc
- VisualShaderNodeFloatOp
- VisualShaderNodeFresnel
- VisualShaderNodeIf
- VisualShaderNodeInput
- VisualShaderNodeIntFunc
- VisualShaderNodeIntOp
- VisualShaderNodeIs
- VisualShaderNodeLinearSceneDepth
- VisualShaderNodeMix
- VisualShaderNodeMultiplyAdd
- VisualShaderNodeOuterProduct
- VisualShaderNodeOutput (1)
- VisualShaderNodeParameter (10)
- VisualShaderNodeParameterRef
- VisualShaderNodeParticleAccelerator
- VisualShaderNodeParticleConeVelocity
- VisualShaderNodeParticleEmit
- VisualShaderNodeParticleEmitter (4)
- VisualShaderNodeParticleMultiplyByAxisAngle
- VisualShaderNodeParticleRandomness
- VisualShaderNodeProximityFade
- VisualShaderNodeRandomRange
- VisualShaderNodeRemap
- VisualShaderNodeReroute
- VisualShaderNodeResizableBase (4)
- VisualShaderNodeRotationByAxis
- VisualShaderNodeSDFRaymarch
- VisualShaderNodeSDFToScreenUV
- VisualShaderNodeSample3D (2)
- VisualShaderNodeScreenNormalWorldSpace
- VisualShaderNodeScreenUVToSDF
- VisualShaderNodeSmoothStep
- VisualShaderNodeStep
- VisualShaderNodeSwitch
- VisualShaderNodeTexture
- VisualShaderNodeTextureSDF
- VisualShaderNodeTextureSDFNormal
- VisualShaderNodeTransformCompose
- VisualShaderNodeTransformDecompose
- VisualShaderNodeTransformFunc
- VisualShaderNodeTransformOp
- VisualShaderNodeTransformVecMult
- VisualShaderNodeUIntFunc
- VisualShaderNodeUIntOp
- VisualShaderNodeUVFunc
- VisualShaderNodeUVPolarCoord
- VisualShaderNodeVarying (2)
- VisualShaderNodeVectorBase (8)
- VisualShaderNodeWorldPositionFromDepth
VisualShaderNodeVectorFunc
Table of contents

VisualShaderNodeVectorFunc #

is_refcounted, is_instantiable, resource, core, not_builtin_classes

A vector function to be used within the visual shader graph.

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

Members #

var function = FUNC_NORMALIZE#

The function to be performed. See Function for options.

Methods #

Annotations #

Constants #

const FUNC_NORMALIZE = 0 enum Function#

Normalizes the vector so that it has a length of 1 but points in the same direction.

const FUNC_SATURATE = 1 enum Function#

Clamps the value between 0.0 and 1.0.

const FUNC_NEGATE = 2 enum Function#

Returns the opposite value of the parameter.

const FUNC_RECIPROCAL = 3 enum Function#

Returns 1/vector.

const FUNC_ABS = 4 enum Function#

Returns the absolute value of the parameter.

const FUNC_ACOS = 5 enum Function#

Returns the arc-cosine of the parameter.

const FUNC_ACOSH = 6 enum Function#

Returns the inverse hyperbolic cosine of the parameter.

const FUNC_ASIN = 7 enum Function#

Returns the arc-sine of the parameter.

const FUNC_ASINH = 8 enum Function#

Returns the inverse hyperbolic sine of the parameter.

const FUNC_ATAN = 9 enum Function#

Returns the arc-tangent of the parameter.

const FUNC_ATANH = 10 enum Function#

Returns the inverse hyperbolic tangent of the parameter.

const FUNC_CEIL = 11 enum Function#

Finds the nearest integer that is greater than or equal to the parameter.

const FUNC_COS = 12 enum Function#

Returns the cosine of the parameter.

const FUNC_COSH = 13 enum Function#

Returns the hyperbolic cosine of the parameter.

const FUNC_DEGREES = 14 enum Function#

Converts a quantity in radians to degrees.

const FUNC_EXP = 15 enum Function#

Base-e Exponential.

const FUNC_EXP2 = 16 enum Function#

Base-2 Exponential.

const FUNC_FLOOR = 17 enum Function#

Finds the nearest integer less than or equal to the parameter.

const FUNC_FRACT = 18 enum Function#

Computes the fractional part of the argument.

const FUNC_INVERSE_SQRT = 19 enum Function#

Returns the inverse of the square root of the parameter.

const FUNC_LOG = 20 enum Function#

Natural logarithm.

const FUNC_LOG2 = 21 enum Function#

Base-2 logarithm.

const FUNC_RADIANS = 22 enum Function#

Converts a quantity in degrees to radians.

const FUNC_ROUND = 23 enum Function#

Finds the nearest integer to the parameter.

const FUNC_ROUNDEVEN = 24 enum Function#

Finds the nearest even integer to the parameter.

const FUNC_SIGN = 25 enum Function#

Extracts the sign of the parameter, i.e. returns -1 if the parameter is negative, 1 if it's positive and 0 otherwise.

const FUNC_SIN = 26 enum Function#

Returns the sine of the parameter.

const FUNC_SINH = 27 enum Function#

Returns the hyperbolic sine of the parameter.

const FUNC_SQRT = 28 enum Function#

Returns the square root of the parameter.

const FUNC_TAN = 29 enum Function#

Returns the tangent of the parameter.

const FUNC_TANH = 30 enum Function#

Returns the hyperbolic tangent of the parameter.

const FUNC_TRUNC = 31 enum Function#

Returns a value equal to the nearest integer to the parameter whose absolute value is not larger than the absolute value of the parameter.

const FUNC_ONEMINUS = 32 enum Function#

Returns 1.0 - vector.

const FUNC_MAX = 33 enum Function#

Represents the size of the Function enum.

Constructors #

Enums #

Function#

enum Function { FUNC_NORMALIZE = 0, FUNC_SATURATE = 1, FUNC_NEGATE = 2, FUNC_RECIPROCAL = 3, FUNC_ABS = 4, FUNC_ACOS = 5, FUNC_ACOSH = 6, FUNC_ASIN = 7, FUNC_ASINH = 8, FUNC_ATAN = 9, FUNC_ATANH = 10, FUNC_CEIL = 11, FUNC_COS = 12, FUNC_COSH = 13, FUNC_DEGREES = 14, FUNC_EXP = 15, FUNC_EXP2 = 16, FUNC_FLOOR = 17, FUNC_FRACT = 18, FUNC_INVERSE_SQRT = 19, FUNC_LOG = 20, FUNC_LOG2 = 21, FUNC_RADIANS = 22, FUNC_ROUND = 23, FUNC_ROUNDEVEN = 24, FUNC_SIGN = 25, FUNC_SIN = 26, FUNC_SINH = 27, FUNC_SQRT = 28, FUNC_TAN = 29, FUNC_TANH = 30, FUNC_TRUNC = 31, FUNC_ONEMINUS = 32, FUNC_MAX = 33, }

Operators #

Signals #

Theme Items #

Tutorials #