:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisualShaderNodeIntFunc.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisualShaderNodeIntFunc: VisualShaderNodeIntFunc ======================= **Inherits:** :ref:`VisualShaderNode` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`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 :ref:`function`. Properties ---------- +--------------------------------------------------------+------------------------------------------------------------------+-------+ | :ref:`Function` | :ref:`function` | ``3`` | +--------------------------------------------------------+------------------------------------------------------------------+-------+ Enumerations ------------ .. _enum_VisualShaderNodeIntFunc_Function: .. _class_VisualShaderNodeIntFunc_constant_FUNC_ABS: .. _class_VisualShaderNodeIntFunc_constant_FUNC_CLAMP: .. _class_VisualShaderNodeIntFunc_constant_FUNC_NEGATE: .. _class_VisualShaderNodeIntFunc_constant_FUNC_SIGN: 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 --------------------- .. _class_VisualShaderNodeIntFunc_property_function: - :ref:`Function` **function** +-----------+---------------------+ | *Default* | ``3`` | +-----------+---------------------+ | *Setter* | set_function(value) | +-----------+---------------------+ | *Getter* | get_function() | +-----------+---------------------+ A function to be applied to the scalar. See :ref:`Function` for options.