2018-07-26 17:56:21 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-02-14 21:18:53 +08:00
|
|
|
<class name="VisualShaderNodeTextureUniform" inherits="VisualShaderNodeUniform" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
2018-07-26 17:56:21 +08:00
|
|
|
<brief_description>
|
2020-05-07 17:19:23 +08:00
|
|
|
Performs a uniform texture lookup within the visual shader graph.
|
2018-07-26 17:56:21 +08:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-05-07 17:19:23 +08:00
|
|
|
Performs a lookup operation on the texture provided as a uniform for the shader.
|
2018-07-26 17:56:21 +08:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<members>
|
2019-06-29 18:38:01 +08:00
|
|
|
<member name="color_default" type="int" setter="set_color_default" getter="get_color_default" enum="VisualShaderNodeTextureUniform.ColorDefault" default="0">
|
2020-05-07 17:19:23 +08:00
|
|
|
Sets the default color if no texture is assigned to the uniform.
|
2018-07-26 17:56:21 +08:00
|
|
|
</member>
|
2021-12-16 16:41:29 +08:00
|
|
|
<member name="texture_filter" type="int" setter="set_texture_filter" getter="get_texture_filter" enum="VisualShaderNodeTextureUniform.TextureFilter" default="0">
|
|
|
|
Sets the texture filtering mode. See [enum TextureFilter] for options.
|
|
|
|
</member>
|
|
|
|
<member name="texture_repeat" type="int" setter="set_texture_repeat" getter="get_texture_repeat" enum="VisualShaderNodeTextureUniform.TextureRepeat" default="0">
|
|
|
|
Sets the texture repeating mode. See [enum TextureRepeat] for options.
|
|
|
|
</member>
|
2019-06-29 18:38:01 +08:00
|
|
|
<member name="texture_type" type="int" setter="set_texture_type" getter="get_texture_type" enum="VisualShaderNodeTextureUniform.TextureType" default="0">
|
2020-05-07 17:19:23 +08:00
|
|
|
Defines the type of data provided by the source texture. See [enum TextureType] for options.
|
2018-07-26 17:56:21 +08:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
<constant name="TYPE_DATA" value="0" enum="TextureType">
|
2020-05-07 17:19:23 +08:00
|
|
|
No hints are added to the uniform declaration.
|
2018-07-26 17:56:21 +08:00
|
|
|
</constant>
|
|
|
|
<constant name="TYPE_COLOR" value="1" enum="TextureType">
|
2020-05-07 17:19:23 +08:00
|
|
|
Adds [code]hint_albedo[/code] as hint to the uniform declaration for proper sRGB to linear conversion.
|
2018-07-26 17:56:21 +08:00
|
|
|
</constant>
|
2020-12-23 17:34:26 +08:00
|
|
|
<constant name="TYPE_NORMAL_MAP" value="2" enum="TextureType">
|
2020-05-07 17:19:23 +08: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 17:56:21 +08:00
|
|
|
</constant>
|
2021-12-10 03:29:06 +08:00
|
|
|
<constant name="TYPE_ANISOTROPY" value="3" enum="TextureType">
|
|
|
|
Adds [code]hint_anisotropy[/code] as hint to the uniform declaration to use for a flowmap.
|
2018-07-26 17:56:21 +08:00
|
|
|
</constant>
|
2021-08-14 18:38:22 +08:00
|
|
|
<constant name="TYPE_MAX" value="4" enum="TextureType">
|
|
|
|
Represents the size of the [enum TextureType] enum.
|
|
|
|
</constant>
|
2018-07-26 17:56:21 +08:00
|
|
|
<constant name="COLOR_DEFAULT_WHITE" value="0" enum="ColorDefault">
|
2020-05-07 17:19:23 +08:00
|
|
|
Defaults to white color.
|
2018-07-26 17:56:21 +08:00
|
|
|
</constant>
|
|
|
|
<constant name="COLOR_DEFAULT_BLACK" value="1" enum="ColorDefault">
|
2020-05-07 17:19:23 +08:00
|
|
|
Defaults to black color.
|
2018-07-26 17:56:21 +08:00
|
|
|
</constant>
|
2021-08-14 18:38:22 +08:00
|
|
|
<constant name="COLOR_DEFAULT_MAX" value="2" enum="ColorDefault">
|
|
|
|
Represents the size of the [enum ColorDefault] enum.
|
|
|
|
</constant>
|
2021-12-16 16:41:29 +08:00
|
|
|
<constant name="FILTER_DEFAULT" value="0" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_NEAREST" value="1" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_LINEAR" value="2" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_NEAREST_MIPMAP" value="3" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_LINEAR_MIPMAP" value="4" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_NEAREST_MIPMAP_ANISOTROPIC" value="5" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_LINEAR_MIPMAP_ANISOTROPIC" value="6" enum="TextureFilter">
|
|
|
|
</constant>
|
|
|
|
<constant name="FILTER_MAX" value="7" enum="TextureFilter">
|
|
|
|
Represents the size of the [enum TextureFilter] enum.
|
|
|
|
</constant>
|
|
|
|
<constant name="REPEAT_DEFAULT" value="0" enum="TextureRepeat">
|
|
|
|
</constant>
|
|
|
|
<constant name="REPEAT_ENABLED" value="1" enum="TextureRepeat">
|
|
|
|
</constant>
|
|
|
|
<constant name="REPEAT_DISABLED" value="2" enum="TextureRepeat">
|
|
|
|
</constant>
|
|
|
|
<constant name="REPEAT_MAX" value="3" enum="TextureRepeat">
|
|
|
|
Represents the size of the [enum TextureRepeat] enum.
|
|
|
|
</constant>
|
2018-07-26 17:56:21 +08:00
|
|
|
</constants>
|
|
|
|
</class>
|