Operator

    VisualShaderNodeFloatOp.swift:13
    enum Operator

    Cases

    • case add

      Sums two numbers using a + b.

    • case sub

      Subtracts two numbers using a - b.

    • case mul

      Multiplies two numbers using a * b.

    • case div

      Divides two numbers using a / b.

    • case mod

      Calculates the remainder of two numbers. Translates to mod(a, b) in the Godot Shader Language.

    • case pow

      Raises the a to the power of b. Translates to pow(a, b) in the Godot Shader Language.

    • case max

      Returns the greater of two numbers. Translates to max(a, b) in the Godot Shader Language.

    • case min

      Returns the lesser of two numbers. Translates to min(a, b) in the Godot Shader Language.

    • case atan2

      Returns the arc-tangent of the parameters. Translates to atan(a, b) in the Godot Shader Language.

    • case step

      Generates a step function by comparing b(x) to a(edge). Returns 0.0 if x is smaller than edge and otherwise 1.0. Translates to step(a, b) in the Godot Shader Language.

    • case enumSize

      Represents the size of the Operator enum.

    Other members in extension

    Type members

    Instance members

    Citizens in SwiftGodot

    Conformances

    Type members

    Instance members

    Type features

    Instance features