Skip to content
0.2.0-dev Download ZIP
39 lines ·2.1 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeParameter" inherits="VisualShaderNode" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 A base type for the parameters within the visual shader graph.
5 </brief_description>
6 <description>
7 A parameter represents a variable in the shader which is set externally, i.e. from the [ShaderMaterial]. Parameters are exposed as properties in the [ShaderMaterial] and can be assigned from the Inspector or from a script.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="instance_index" type="int" setter="set_instance_index" getter="get_instance_index" default="0">
13 The index within 0-15 range, which is used to avoid clashes when shader used on multiple materials.
14 </member>
15 <member name="parameter_name" type="String" setter="set_parameter_name" getter="get_parameter_name" default="&quot;&quot;">
16 Name of the parameter, by which it can be accessed through the [ShaderMaterial] properties.
17 </member>
18 <member name="qualifier" type="int" setter="set_qualifier" getter="get_qualifier" enum="VisualShaderNodeParameter.Qualifier" default="0">
19 Defines the scope of the parameter.
20 </member>
21 </members>
22 <constants>
23 <constant name="QUAL_NONE" value="0" enum="Qualifier">
24 The parameter will be tied to the [ShaderMaterial] using this shader.
25 </constant>
26 <constant name="QUAL_GLOBAL" value="1" enum="Qualifier">
27 The parameter will use a global value, defined in Project Settings.
28 </constant>
29 <constant name="QUAL_INSTANCE" value="2" enum="Qualifier">
30 The parameter will be tied to the node with attached [ShaderMaterial] using this shader.
31 </constant>
32 <constant name="QUAL_INSTANCE_INDEX" value="3" enum="Qualifier">
33 The parameter will be tied to the node with attached [ShaderMaterial] using this shader. Enables setting a [member instance_index] property.
34 </constant>
35 <constant name="QUAL_MAX" value="4" enum="Qualifier">
36 Represents the size of the [enum Qualifier] enum.
37 </constant>
38 </constants>
39</class>