Documentation
¶
Overview ¶
Similar to how a graphics.gd/classdb/WorldEnvironment node can be used to override the environment while a specific scene is loaded, graphics.gd/classdb/ShaderGlobalsOverride can be used to override global shader parameters temporarily. Once the node is removed, the project-wide values for the global shader parameters are restored. See the graphics.gd/classdb/RenderingServer global_shader_parameter_* methods for more information.
Note: Only one graphics.gd/classdb/ShaderGlobalsOverride can be used per scene. If there is more than one graphics.gd/classdb/ShaderGlobalsOverride node in the scene tree, only the first node (in tree order) will be taken into account.
Note: All graphics.gd/classdb/ShaderGlobalsOverride nodes are made part of a "shader_overrides_group" group when they are added to the scene tree. The currently active graphics.gd/classdb/ShaderGlobalsOverride node also has a "shader_overrides_group_active" group added to it. You can use this to check which graphics.gd/classdb/ShaderGlobalsOverride node is currently active.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsShaderGlobalsOverride ¶
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.ShaderGlobalsOverride
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.