Class reference

VisualShaderNodeFloatFunc

Inherits VisualShaderNode

A scalar floating-point function to be used within the visual shader graph.

Description

Accept a floating-point scalar (x) to the input port and transform it according to function.

Properties

int function = 13

A function to be applied to the scalar.

Constants

FUNC_SIN = 0

Enum: Function

Returns the sine of the parameter. Translates to sin(x) in the GodotShader Language.

FUNC_COS = 1

Enum: Function

Returns the cosine of the parameter. Translates to cos(x) in the GodotShader Language.

FUNC_TAN = 2

Enum: Function

Returns the tangent of the parameter. Translates to tan(x) in the GodotShader Language.

FUNC_ASIN = 3

Enum: Function

Returns the arc-sine of the parameter. Translates to asin(x) in the GodotShader Language.

FUNC_ACOS = 4

Enum: Function

Returns the arc-cosine of the parameter. Translates to acos(x) in the GodotShader Language.

FUNC_ATAN = 5

Enum: Function

Returns the arc-tangent of the parameter. Translates to atan(x) in the GodotShader Language.

FUNC_SINH = 6

Enum: Function

Returns the hyperbolic sine of the parameter. Translates to sinh(x) in the GodotShader Language.

FUNC_COSH = 7

Enum: Function

Returns the hyperbolic cosine of the parameter. Translates to cosh(x) in the GodotShader Language.

FUNC_TANH = 8

Enum: Function

Returns the hyperbolic tangent of the parameter. Translates to tanh(x) in the GodotShader Language.

FUNC_LOG = 9

Enum: Function

Returns the natural logarithm of the parameter. Translates to log(x) in the GodotShader Language.

FUNC_EXP = 10

Enum: Function

Returns the natural exponentiation of the parameter. Translates to exp(x) in the GodotShader Language.

FUNC_SQRT = 11

Enum: Function

Returns the square root of the parameter. Translates to sqrt(x) in the GodotShader Language.

FUNC_ABS = 12

Enum: Function

Returns the absolute value of the parameter. Translates to abs(x) in the GodotShader Language.

FUNC_SIGN = 13

Enum: Function

Extracts the sign of the parameter. Translates to sign(x) in the GodotShader Language.

FUNC_FLOOR = 14

Enum: Function

Finds the nearest integer less than or equal to the parameter. Translates to floor(x) in the GodotShader Language.

FUNC_ROUND = 15

Enum: Function

Finds the nearest integer to the parameter. Translates to round(x) in the GodotShader Language.

FUNC_CEIL = 16

Enum: Function

Finds the nearest integer that is greater than or equal to the parameter. Translates to ceil(x) in the GodotShader Language.

FUNC_FRACT = 17

Enum: Function

Computes the fractional part of the argument. Translates to fract(x) in the GodotShader Language.

FUNC_SATURATE = 18

Enum: Function

Clamps the value between 0.0 and 1.0 using min(max(x, 0.0), 1.0).

FUNC_NEGATE = 19

Enum: Function

Negates the x using -(x).

FUNC_ACOSH = 20

Enum: Function

Returns the arc-hyperbolic-cosine of the parameter. Translates to acosh(x) in the GodotShader Language.

FUNC_ASINH = 21

Enum: Function

Returns the arc-hyperbolic-sine of the parameter. Translates to asinh(x) in the GodotShader Language.

FUNC_ATANH = 22

Enum: Function

Returns the arc-hyperbolic-tangent of the parameter. Translates to atanh(x) in the GodotShader Language.

FUNC_DEGREES = 23

Enum: Function

Convert a quantity in radians to degrees. Translates to degrees(x) in the GodotShader Language.

FUNC_EXP2 = 24

Enum: Function

Returns 2 raised by the power of the parameter. Translates to exp2(x) in the GodotShader Language.

FUNC_INVERSE_SQRT = 25

Enum: Function

Returns the inverse of the square root of the parameter. Translates to inversesqrt(x) in the GodotShader Language.

FUNC_LOG2 = 26

Enum: Function

Returns the base 2 logarithm of the parameter. Translates to log2(x) in the GodotShader Language.

FUNC_RADIANS = 27

Enum: Function

Convert a quantity in degrees to radians. Translates to radians(x) in the GodotShader Language.

FUNC_RECIPROCAL = 28

Enum: Function

Finds reciprocal value of dividing 1 by x (i.e. 1 / x).

FUNC_ROUNDEVEN = 29

Enum: Function

Finds the nearest even integer to the parameter. Translates to roundEven(x) in the GodotShader Language.

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 GodotShader Language.

FUNC_ONEMINUS = 31

Enum: Function

Subtracts scalar x from 1 (i.e. 1 - x).

FUNC_MAX = 32

Enum: Function

Represents the size of the Function enum.

Source revision 4f5b14abade2
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.