2018-07-26 11:56:21 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-01-26 16:01:49 +01:00
|
|
|
<class name="VisualShaderNodeTextureUniform" inherits="VisualShaderNodeUniform" version="3.2">
|
2018-07-26 11:56:21 +02:00
|
|
|
<brief_description>
|
2020-05-07 11:19:23 +02:00
|
|
|
Performs a uniform texture lookup within the visual shader graph.
|
2018-07-26 11:56:21 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-05-07 11:19:23 +02:00
|
|
|
Performs a lookup operation on the texture provided as a uniform for the shader.
|
2018-07-26 11:56:21 +02:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="color_default" type="int" setter="set_color_default" getter="get_color_default" enum="VisualShaderNodeTextureUniform.ColorDefault" default="0">
|
2020-05-07 11:19:23 +02:00
|
|
|
Sets the default color if no texture is assigned to the uniform.
|
2018-07-26 11:56:21 +02:00
|
|
|
</member>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeTextureUniform.TextureType" default="0">
|
2020-05-07 11:19:23 +02:00
|
|
|
Defines the type of data provided by the source texture. See [enum TextureType] for options.
|
2018-07-26 11:56:21 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="TYPE_DATA" value="0" enum="TextureType">
|
2020-05-07 11:19:23 +02:00
|
|
|
No hints are added to the uniform declaration.
|
2018-07-26 11:56:21 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="TYPE_COLOR" value="1" enum="TextureType">
|
2020-05-07 11:19:23 +02:00
|
|
|
Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
|
2018-07-26 11:56:21 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="TYPE_NORMALMAP" value="2" enum="TextureType">
|
2020-05-07 11:19:23 +02:00
|
|
|
Adds [code]hint_normal[/code] as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
|
2018-07-26 11:56:21 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="TYPE_ANISO" value="3" enum="TextureType">
|
2020-05-07 11:19:23 +02:00
|
|
|
Adds [code]hint_aniso[/code] as hint to the uniform declaration to use for a flowmap.
|
2018-07-26 11:56:21 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="COLOR_DEFAULT_WHITE" value="0" enum="ColorDefault">
|
2020-05-07 11:19:23 +02:00
|
|
|
Defaults to white color.
|
2018-07-26 11:56:21 +02:00
|
|
|
</constant>
|
|
|
|
<constant name="COLOR_DEFAULT_BLACK" value="1" enum="ColorDefault">
|
2020-05-07 11:19:23 +02:00
|
|
|
Defaults to black color.
|
2018-07-26 11:56:21 +02:00
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|