Skip to content
0.2.0-dev Download ZIP
14 lines ·1.4 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="ShaderGlobalsOverride" inherits="Node" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 A node used to override global shader parameters' values in a scene.
5 </brief_description>
6 <description>
7 Similar to how a [WorldEnvironment] node can be used to override the environment while a specific scene is loaded, [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 [RenderingServer] [code]global_shader_parameter_*[/code] methods for more information.
8 [b]Note:[/b] Only one [ShaderGlobalsOverride] can be used per scene. If there is more than one [ShaderGlobalsOverride] node in the scene tree, only the first node (in tree order) will be taken into account.
9 [b]Note:[/b] All [ShaderGlobalsOverride] nodes are made part of a [code]"shader_overrides_group"[/code] group when they are added to the scene tree. The currently active [ShaderGlobalsOverride] node also has a [code]"shader_overrides_group_active"[/code] group added to it. You can use this to check which [ShaderGlobalsOverride] node is currently active.
10 </description>
11 <tutorials>
12 <link title="Shading language">$DOCS_URL/tutorials/shaders/shader_reference/shading_language.html</link>
13 </tutorials>
14</class>