Outdated documentation

This documentation page refers to Godot 4.3, and may be outdated or incorrect.
Additionally, this engine version is no longer supported.

Check this page in the stable branch for the latest additions and corrections.

VisualShaderNodeVarying

Inherits: VisualShaderNode < Resource < RefCounted < Object

Inherited By: VisualShaderNodeVaryingGetter, VisualShaderNodeVaryingSetter

A visual shader node that represents a "varying" shader value.

Description

Varying values are shader variables that can be passed between shader functions, e.g. from Vertex shader to Fragment shader.

Properties

String

varying_name

"[None]"

VaryingType

varying_type

0


Property Descriptions

String varying_name = "[None]" 🔗

  • void set_varying_name(value: String)

  • String get_varying_name()

Name of the variable. Must be unique.


VaryingType varying_type = 0 🔗

Type of the variable. Determines where the variable can be accessed.


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.