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.
VisualShaderNodeVaryingSetter
Inherits: VisualShaderNodeVarying < VisualShaderNode < Resource < RefCounted < Object
A visual shader node that sets a value of a varying.
Description
Inputs a value to a varying defined in the shader. You need to first create a varying that can be used in the given function, e.g. varying setter in Fragment shader requires a varying with mode set to VisualShader.VARYING_MODE_FRAG_TO_LIGHT.