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。