Table of Contents

Enum VisualShaderNode.PortType

Namespace
Godot
Assembly
GodotSharp.dll
public enum VisualShaderNode.PortType : long

Fields

Boolean = 6

Boolean type. Translated to bool type in shader code.

Max = 9

Represents the size of the VisualShaderNode.PortType enum.

Sampler = 8

Sampler type. Translated to reference of sampler uniform in shader code. Can only be used for input ports in non-uniform nodes.

Scalar = 0

Floating-point scalar. Translated to float type in shader code.

ScalarInt = 1

Integer scalar. Translated to int type in shader code.

ScalarUint = 2

Unsigned integer scalar. Translated to uint type in shader code.

Transform = 7

Transform type. Translated to mat4 type in shader code.

Vector2D = 3

2D vector of floating-point values. Translated to vec2 type in shader code.

Vector3D = 4

3D vector of floating-point values. Translated to vec3 type in shader code.

Vector4D = 5

4D vector of floating-point values. Translated to vec4 type in shader code.