2018-07-26 11:56:21 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-25 15:50:49 +01:00
<class name= "VisualShaderNodeIntUniform" inherits= "VisualShaderNodeUniform" version= "4.0" >
2018-07-26 11:56:21 +02:00
<brief_description >
2020-02-25 15:50:49 +01:00
A scalar integer uniform to be used within the visual shader graph.
2018-07-26 11:56:21 +02:00
</brief_description>
<description >
2020-02-25 15:50:49 +01:00
Translated to [code]uniform int[/code] in the shader language.
2018-07-26 11:56:21 +02:00
</description>
<tutorials >
</tutorials>
<methods >
</methods>
2020-02-06 13:11:03 +01:00
<members >
2020-02-25 15:50:49 +01:00
<member name= "hint" type= "int" setter= "set_hint" getter= "get_hint" enum= "VisualShaderNodeIntUniform.Hint" default= "0" >
2020-02-06 13:11:03 +01:00
A hint applied to the uniform, which controls the values it can take when set through the inspector.
</member>
2020-02-25 15:50:49 +01:00
<member name= "max" type= "int" setter= "set_max" getter= "get_max" default= "100" >
2020-02-06 13:11:03 +01:00
Minimum value for range hints. Used if [member hint] is set to [constant HINT_RANGE] or [constant HINT_RANGE_STEP].
</member>
2020-02-25 15:50:49 +01:00
<member name= "min" type= "int" setter= "set_min" getter= "get_min" default= "0" >
2020-02-06 13:11:03 +01:00
Maximum value for range hints. Used if [member hint] is set to [constant HINT_RANGE] or [constant HINT_RANGE_STEP].
</member>
2020-02-25 15:50:49 +01:00
<member name= "step" type= "int" setter= "set_step" getter= "get_step" default= "1" >
2020-02-06 13:11:03 +01:00
Step (increment) value for the range hint with step. Used if [member hint] is set to [constant HINT_RANGE_STEP].
</member>
</members>
2018-07-26 11:56:21 +02:00
<constants >
2020-02-06 13:11:03 +01:00
<constant name= "HINT_NONE" value= "0" enum= "Hint" >
No hint used.
</constant>
<constant name= "HINT_RANGE" value= "1" enum= "Hint" >
A range hint for scalar value, which limits possible input values between [member min] and [member max]. Translated to [code]hint_range(min, max)[/code] in shader code.
</constant>
<constant name= "HINT_RANGE_STEP" value= "2" enum= "Hint" >
A range hint for scalar value with step, which limits possible input values between [member min] and [member max], with a step (increment) of [member step]). Translated to [code]hint_range(min, max, step)[/code] in shader code.
</constant>
2018-07-26 11:56:21 +02:00
</constants>
</class>