2018-07-26 09:56:21 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2019-04-01 10:33:56 +00:00
|
|
|
<class name="VisualShaderNode" inherits="Resource" category="Core" version="3.2">
|
2018-07-26 09:56:21 +00:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="get_input_port_default_value" qualifiers="const">
|
|
|
|
<return type="Variant">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="port" type="int">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="set_input_port_default_value">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="port" type="int">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="value" type="Variant">
|
|
|
|
</argument>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="default_input_values" type="Array" setter="_set_default_input_values" getter="_get_default_input_values" default="[ 0, Vector3( 0, 0, 0 ) ]">
|
2018-07-26 09:56:21 +00:00
|
|
|
</member>
|
2019-06-29 10:38:01 +00:00
|
|
|
<member name="output_port_for_preview" type="int" setter="set_output_port_for_preview" getter="get_output_port_for_preview" default="-1">
|
2018-07-26 09:56:21 +00:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<signals>
|
|
|
|
<signal name="editor_refresh_request">
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
|
|
|
<constants>
|
2019-08-09 19:51:48 +00:00
|
|
|
<constant name="PORT_TYPE_SCALAR" value="0" enum="PortType">
|
|
|
|
Floating-point scalar. Translated to [code]float[/code] type in shader code.
|
|
|
|
</constant>
|
|
|
|
<constant name="PORT_TYPE_VECTOR" value="1" enum="PortType">
|
|
|
|
3D vector of floating-point values. Translated to [code]vec3[/code] type in shader code.
|
|
|
|
</constant>
|
|
|
|
<constant name="PORT_TYPE_BOOLEAN" value="2" enum="PortType">
|
|
|
|
Boolean type. Translated to [code]bool[/code] type in shader code.
|
|
|
|
</constant>
|
|
|
|
<constant name="PORT_TYPE_TRANSFORM" value="3" enum="PortType">
|
|
|
|
Transform type. Translated to [code]mat4[/code] type in shader code.
|
|
|
|
</constant>
|
2019-10-01 08:51:50 +00:00
|
|
|
<constant name="PORT_TYPE_SAMPLER" value="4" enum="PortType">
|
|
|
|
Sampler type. Translated to reference of sampler uniform in shader code. Can only be used for input ports in non-uniform nodes.
|
|
|
|
</constant>
|
|
|
|
<constant name="PORT_TYPE_MAX" value="5" enum="PortType">
|
|
|
|
Represents the size of the [enum PortType] enum.
|
2019-08-09 19:51:48 +00:00
|
|
|
</constant>
|
2018-07-26 09:56:21 +00:00
|
|
|
</constants>
|
|
|
|
</class>
|