Index · Object → RefCounted → Resource → VisualShaderNode → VisualShaderNodeFloatFunc

VisualShaderNodeFloatFunc

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

Class Description

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

Properties

var function: VisualShaderNodeFloatFunc.Function = 13

A function to be applied to the scalar.

Inherited from VisualShaderNode (2)
Inherited from Resource (4)

Methods

Inherited from VisualShaderNode (7)
func set_default_input_values(values: Array) -> void
func set_input_port_default_value(port: int, value: Variant, prev_value: Variant = null) -> void
Inherited from Resource (18)
func _get_rid() -> RID
func _reset_state() -> void
func _set_path_cache(path: String) -> void
func _setup_local_to_scene() -> void
func copy_from_resource(resource: Resource) -> Error
func duplicate(deep: bool = false) -> Resource
func duplicate_deep(deep_subresources_mode: Resource.DeepDuplicateMode = 1) -> Resource
func emit_changed() -> void
func get_rid() -> RID
func is_built_in() -> bool
func reset_state() -> void
func set_id_for_path(path: String, id: String) -> void
func set_path_cache(path: String) -> void
func setup_local_to_scene() -> void
func take_over_path(path: String) -> void
Inherited from RefCounted (4)
func init_ref() -> bool
func reference() -> bool
func unreference() -> bool
Inherited from Object (62)
func _get(property: StringName) -> Variant
func _get_property_list() -> Dictionary[]
func _init() -> void
func _iter_get(iter: Variant) -> Variant
func _iter_init(iter: Array) -> bool
func _iter_next(iter: Array) -> bool
func _notification(what: int) -> void
func _set(property: StringName, value: Variant) -> bool
func _to_string() -> String
func _validate_property(property: Dictionary) -> void
func add_user_signal(signal: String, arguments: Array = []) -> void
func call(method: StringName) -> Variant
func callv(method: StringName, arg_array: Array) -> Variant
func cancel_free() -> void
func connect(signal: StringName, callable: Callable, flags: int = 0) -> Error
func disconnect(signal: StringName, callable: Callable) -> void
func emit_signal(signal: StringName) -> Error
func free() -> void
func get(property: StringName) -> Variant
func get_class() -> String
func get_incoming_connections() -> Dictionary[]
func get_indexed(property_path: NodePath) -> Variant
func get_meta(name: StringName, default: Variant = null) -> Variant
func get_meta_list() -> StringName[]
func get_method_list() -> Dictionary[]
func get_property_list() -> Dictionary[]
func get_signal_connection_list(signal: StringName) -> Dictionary[]
func get_signal_list() -> Dictionary[]
func has_meta(name: StringName) -> bool
func has_method(method: StringName) -> bool
func has_signal(signal: StringName) -> bool
func is_class(class: StringName) -> bool
func is_connected(signal: StringName, callable: Callable) -> bool
func notification(what: int, reversed: bool = false) -> void
func remove_meta(name: StringName) -> void
func remove_user_signal(signal: StringName) -> void
func set(property: StringName, value: Variant) -> void
func set_block_signals(enable: bool) -> void
func set_deferred(property: StringName, value: Variant) -> void
func set_indexed(property_path: NodePath, value: Variant) -> void
func set_message_translation(enable: bool) -> void
func set_meta(name: StringName, value: Variant) -> void
func set_script(script: Variant) -> void
func set_translation_domain(domain: StringName) -> void
func to_string() -> String
func tr(message: StringName, context: StringName = &"") -> String
func tr_n(message: StringName, plural_message: StringName, n: int, context: StringName = &"") -> String

Signals

Inherited from Resource (2)
signal changed()
Inherited from Object (2)

Enums & Constants

enum Function
FUNC_SIN = 0

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

FUNC_COS = 1

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

FUNC_TAN = 2

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

FUNC_ASIN = 3

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

FUNC_ACOS = 4

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

FUNC_ATAN = 5

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

FUNC_SINH = 6

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

FUNC_COSH = 7

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

FUNC_TANH = 8

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

FUNC_LOG = 9

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

FUNC_EXP = 10

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

FUNC_SQRT = 11

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

FUNC_ABS = 12

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

FUNC_SIGN = 13

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

FUNC_FLOOR = 14

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

FUNC_ROUND = 15

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

FUNC_CEIL = 16

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

FUNC_FRACT = 17

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

FUNC_SATURATE = 18

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

FUNC_NEGATE = 19

Negates the x using -(x).

FUNC_ACOSH = 20

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

FUNC_ASINH = 21

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

FUNC_ATANH = 22

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

FUNC_DEGREES = 23

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

FUNC_EXP2 = 24

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

FUNC_INVERSE_SQRT = 25

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

FUNC_LOG2 = 26

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

FUNC_RADIANS = 27

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

FUNC_RECIPROCAL = 28

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

FUNC_ROUNDEVEN = 29

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

FUNC_TRUNC = 30

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.

FUNC_ONEMINUS = 31

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

FUNC_MAX = 32

Represents the size of the Function enum.