Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- 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
- 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
- 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
Table of contents
-
var function = FUNC_SIGN -
const FUNC_SIN = 0 enum Function -
const FUNC_COS = 1 enum Function -
const FUNC_TAN = 2 enum Function -
const FUNC_ASIN = 3 enum Function -
const FUNC_ACOS = 4 enum Function -
const FUNC_ATAN = 5 enum Function -
const FUNC_SINH = 6 enum Function -
const FUNC_COSH = 7 enum Function -
const FUNC_TANH = 8 enum Function -
const FUNC_LOG = 9 enum Function -
const FUNC_EXP = 10 enum Function -
const FUNC_SQRT = 11 enum Function -
const FUNC_ABS = 12 enum Function -
const FUNC_SIGN = 13 enum Function -
const FUNC_FLOOR = 14 enum Function -
const FUNC_ROUND = 15 enum Function -
const FUNC_CEIL = 16 enum Function -
const FUNC_FRACT = 17 enum Function -
const FUNC_SATURATE = 18 enum Function -
const FUNC_NEGATE = 19 enum Function -
const FUNC_ACOSH = 20 enum Function -
const FUNC_ASINH = 21 enum Function -
const FUNC_ATANH = 22 enum Function -
const FUNC_DEGREES = 23 enum Function -
const FUNC_EXP2 = 24 enum Function -
const FUNC_INVERSE_SQRT = 25 enum Function -
const FUNC_LOG2 = 26 enum Function -
const FUNC_RADIANS = 27 enum Function -
const FUNC_RECIPROCAL = 28 enum Function -
const FUNC_ROUNDEVEN = 29 enum Function -
const FUNC_TRUNC = 30 enum Function -
const FUNC_ONEMINUS = 31 enum Function -
const FUNC_MAX = 32 enum Function -
enum Function
VisualShaderNodeFloatFunc #
is_refcounted, is_instantiable, resource, core, not_builtin_classes
A scalar floating-point function to be used within the visual shader graph.
Accept a floating-point scalar (x) to the input port and transform it according to function.
Members #
var function = FUNC_SIGN#
A function to be applied to the scalar. See Function for options.
Methods #
Annotations #
Constants #
const FUNC_SIN = 0 enum Function#
Returns the sine of the parameter. Translates to sin(x) in the Godot Shader Language.
const FUNC_COS = 1 enum Function#
Returns the cosine of the parameter. Translates to cos(x) in the Godot Shader Language.
const FUNC_TAN = 2 enum Function#
Returns the tangent of the parameter. Translates to tan(x) in the Godot Shader Language.
const FUNC_ASIN = 3 enum Function#
Returns the arc-sine of the parameter. Translates to asin(x) in the Godot Shader Language.
const FUNC_ACOS = 4 enum Function#
Returns the arc-cosine of the parameter. Translates to acos(x) in the Godot Shader Language.
const FUNC_ATAN = 5 enum Function#
Returns the arc-tangent of the parameter. Translates to atan(x) in the Godot Shader Language.
const FUNC_SINH = 6 enum Function#
Returns the hyperbolic sine of the parameter. Translates to sinh(x) in the Godot Shader Language.
const FUNC_COSH = 7 enum Function#
Returns the hyperbolic cosine of the parameter. Translates to cosh(x) in the Godot Shader Language.
const FUNC_TANH = 8 enum Function#
Returns the hyperbolic tangent of the parameter. Translates to tanh(x) in the Godot Shader Language.
const FUNC_LOG = 9 enum Function#
Returns the natural logarithm of the parameter. Translates to log(x) in the Godot Shader Language.
const FUNC_EXP = 10 enum Function#
Returns the natural exponentiation of the parameter. Translates to exp(x) in the Godot Shader Language.
const FUNC_SQRT = 11 enum Function#
Returns the square root of the parameter. Translates to sqrt(x) in the Godot Shader Language.
const FUNC_ABS = 12 enum Function#
Returns the absolute value of the parameter. Translates to abs(x) in the Godot Shader Language.
const FUNC_SIGN = 13 enum Function#
Extracts the sign of the parameter. Translates to sign(x) in the Godot Shader Language.
const FUNC_FLOOR = 14 enum Function#
Finds the nearest integer less than or equal to the parameter. Translates to floor(x) in the Godot Shader Language.
const FUNC_ROUND = 15 enum Function#
Finds the nearest integer to the parameter. Translates to round(x) in the Godot Shader Language.
const FUNC_CEIL = 16 enum Function#
Finds the nearest integer that is greater than or equal to the parameter. Translates to ceil(x) in the Godot Shader Language.
const FUNC_FRACT = 17 enum Function#
Computes the fractional part of the argument. Translates to fract(x) in the Godot Shader Language.
const FUNC_SATURATE = 18 enum Function#
Clamps the value between 0.0 and 1.0 using min(max(x, 0.0), 1.0).
const FUNC_NEGATE = 19 enum Function#
Negates the x using -(x).
const FUNC_ACOSH = 20 enum Function#
Returns the arc-hyperbolic-cosine of the parameter. Translates to acosh(x) in the Godot Shader Language.
const FUNC_ASINH = 21 enum Function#
Returns the arc-hyperbolic-sine of the parameter. Translates to asinh(x) in the Godot Shader Language.
const FUNC_ATANH = 22 enum Function#
Returns the arc-hyperbolic-tangent of the parameter. Translates to atanh(x) in the Godot Shader Language.
const FUNC_DEGREES = 23 enum Function#
Convert a quantity in radians to degrees. Translates to degrees(x) in the Godot Shader Language.
const FUNC_EXP2 = 24 enum Function#
Returns 2 raised by the power of the parameter. Translates to exp2(x) in the Godot Shader Language.
const FUNC_INVERSE_SQRT = 25 enum Function#
Returns the inverse of the square root of the parameter. Translates to inversesqrt(x) in the Godot Shader Language.
const FUNC_LOG2 = 26 enum Function#
Returns the base 2 logarithm of the parameter. Translates to log2(x) in the Godot Shader Language.
const FUNC_RADIANS = 27 enum Function#
Convert a quantity in degrees to radians. Translates to radians(x) in the Godot Shader Language.
const FUNC_RECIPROCAL = 28 enum Function#
Finds reciprocal value of dividing 1 by x (i.e. 1 / x).
const FUNC_ROUNDEVEN = 29 enum Function#
Finds the nearest even integer to the parameter. Translates to roundEven(x) in the Godot Shader Language.
const FUNC_TRUNC = 30 enum Function#
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.
const FUNC_ONEMINUS = 31 enum Function#
Subtracts scalar x from 1 (i.e. 1 - x).
const FUNC_MAX = 32 enum Function#
Represents the size of the Function enum.
Constructors #
Enums #
Function#
enum Function {
FUNC_SIN = 0,
FUNC_COS = 1,
FUNC_TAN = 2,
FUNC_ASIN = 3,
FUNC_ACOS = 4,
FUNC_ATAN = 5,
FUNC_SINH = 6,
FUNC_COSH = 7,
FUNC_TANH = 8,
FUNC_LOG = 9,
FUNC_EXP = 10,
FUNC_SQRT = 11,
FUNC_ABS = 12,
FUNC_SIGN = 13,
FUNC_FLOOR = 14,
FUNC_ROUND = 15,
FUNC_CEIL = 16,
FUNC_FRACT = 17,
FUNC_SATURATE = 18,
FUNC_NEGATE = 19,
FUNC_ACOSH = 20,
FUNC_ASINH = 21,
FUNC_ATANH = 22,
FUNC_DEGREES = 23,
FUNC_EXP2 = 24,
FUNC_INVERSE_SQRT = 25,
FUNC_LOG2 = 26,
FUNC_RADIANS = 27,
FUNC_RECIPROCAL = 28,
FUNC_ROUNDEVEN = 29,
FUNC_TRUNC = 30,
FUNC_ONEMINUS = 31,
FUNC_MAX = 32,
}