VisualShaderNodeIntFunc

Inherits: VisualShaderNode < Resource < Reference < Object

A scalar integer function to be used within the visual shader graph.

Description

Accept an integer scalar (x) to the input port and transform it according to function.

Properties

Function function 3

Enumerations

enum Function:

  • FUNC_ABS = 0 --- Returns the absolute value of the parameter. Translates to abs(x) in the Godot Shader Language.
  • FUNC_CLAMP = 1 --- Constrains a parameter between min and max. Translates to clamp(x, min, max) in the Godot Shader Language.
  • FUNC_NEGATE = 2 --- Negates the x using -(x).
  • FUNC_SIGN = 3 --- Extracts the sign of the parameter. Translates to sign(x) in the Godot Shader Language.

Property Descriptions

Default 3
Setter set_function(value)
Getter get_function()

A function to be applied to the scalar. See Function for options.