Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VisualShaderNodeFloatOp

Hérite de : VisualShaderNode < Resource < RefCounted < Object

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

Description

Applique operator aux deux entrées de flottants : a et b.

Propriétés

Operator

operator

0


Énumérations

enum Operator: 🔗

Operator OP_ADD = 0

Additionne deux nombres en utilisant a + b.

Operator OP_SUB = 1

Soustrait deux nombres en utilisant a - b.

Operator OP_MUL = 2

Multiplie deux nombres en utilisant a * b.

Operator OP_DIV = 3

Divise deux nombres en utilisant a / b.

Operator OP_MOD = 4

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

Operator OP_POW = 5

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

Operator OP_MAX = 6

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

Operator OP_MIN = 7

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

Operator OP_ATAN2 = 8

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

Operator OP_STEP = 9

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.

Operator OP_ENUM_SIZE = 10

Représente la taille de l'énumération Operator.


Descriptions des propriétés

Operator operator = 0 🔗

Un opérateur à appliquer aux entrées.