Skip to content
0.2.0-dev Download ZIP
27 lines ·1.5 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeUVFunc" inherits="VisualShaderNode" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 Contains functions to modify texture coordinates ([code]uv[/code]) to be used within the visual shader graph.
5 </brief_description>
6 <description>
7 UV functions are similar to [Vector2] functions, but the input port of this node uses the shader's UV value by default.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="function" type="int" setter="set_function" getter="get_function" enum="VisualShaderNodeUVFunc.Function" default="0">
13 A function to be applied to the texture coordinates.
14 </member>
15 </members>
16 <constants>
17 <constant name="FUNC_PANNING" value="0" enum="Function">
18 Translates [code]uv[/code] by using [code]scale[/code] and [code]offset[/code] values using the following formula: [code]uv = uv + offset * scale[/code]. [code]uv[/code] port is connected to [code]UV[/code] built-in by default.
19 </constant>
20 <constant name="FUNC_SCALING" value="1" enum="Function">
21 Scales [code]uv[/code] by using [code]scale[/code] and [code]pivot[/code] values using the following formula: [code]uv = (uv - pivot) * scale + pivot[/code]. [code]uv[/code] port is connected to [code]UV[/code] built-in by default.
22 </constant>
23 <constant name="FUNC_MAX" value="2" enum="Function">
24 Represents the size of the [enum Function] enum.
25 </constant>
26 </constants>
27</class>