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.
Checking the stable version of the documentation...
VisualShaderNodeExpression
继承: VisualShaderNodeGroupBase < VisualShaderNodeResizableBase < VisualShaderNode < Resource < RefCounted < Object
派生: VisualShaderNodeGlobalExpression
用Godot着色语言编写的自定义可视化着色器图形表达式。
描述
自定义 Godot 着色器语言表达式,有自定义数量的输入和输出端口。
所提供的代码会直接注入到着色器图中匹配的着色器函数中(vertex
、fragment
或 light
),所以不能用于声明函数、varying、uniform 或全局常量。这种全局定义见 VisualShaderNodeGlobalExpression。
属性
|
属性说明
Godot 着色器语言中的表达式,它将被注入到图形匹配的着色器函数(vertex
、fragment
或 light
)的开头,因此不能用于声明函数、varying、uniform 或全局常量。