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.

VisualShaderNodeVaryingGetter

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

用于获取 varying 的可视化着色器节点。

描述

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