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...
VisualShaderNodeGlobalExpression
继承: VisualShaderNodeExpression < VisualShaderNodeGroupBase < VisualShaderNodeResizableBase < VisualShaderNode < Resource < RefCounted < Object
用Godot着色器语言编写的自定义全局可视化着色器图形表达式。
描述
自定义Godot着色器语言表达式,位于生成的着色器之上。你可以在内部放置各种函数定义,以便以后在VisualShaderNodeExpression中调用,这些函数被注入到主着色器函数中。你还可以声明varyings、uniforms 和全局常量。