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.

VisualShaderNodeVaryingSetter

继承: VisualShaderNodeVarying < VisualShaderNode < Resource < RefCounted < Object

用于设置 varying 的可视化着色器节点。

描述

向着色器中定义的 varying 输入一个值。你需要首先创建可用于该函数的 varying,例如 Fragment 着色器的 varying setter 需要模式为 VisualShader.VARYING_MODE_FRAG_TO_LIGHT 的 varying。