Skip to content
0.2.0-dev Download ZIP
41 lines ·2.1 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeRemap" inherits="VisualShaderNode" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 A visual shader node for remap function.
5 </brief_description>
6 <description>
7 Remap will transform the input range into output range, e.g. you can change a [code]0..1[/code] value to [code]-2..2[/code] etc. See [method @GlobalScope.remap] for more details.
8 </description>
9 <tutorials>
10 </tutorials>
11 <members>
12 <member name="op_type" type="int" setter="set_op_type" getter="get_op_type" enum="VisualShaderNodeRemap.OpType" default="0">
13 </member>
14 </members>
15 <constants>
16 <constant name="OP_TYPE_SCALAR" value="0" enum="OpType">
17 A floating-point scalar type.
18 </constant>
19 <constant name="OP_TYPE_VECTOR_2D" value="1" enum="OpType">
20 A 2D vector type.
21 </constant>
22 <constant name="OP_TYPE_VECTOR_2D_SCALAR" value="2" enum="OpType">
23 The [code]value[/code] port uses a 2D vector type, while the [code]input min[/code], [code]input max[/code], [code]output min[/code], and [code]output max[/code] ports use a floating-point scalar type.
24 </constant>
25 <constant name="OP_TYPE_VECTOR_3D" value="3" enum="OpType">
26 A 3D vector type.
27 </constant>
28 <constant name="OP_TYPE_VECTOR_3D_SCALAR" value="4" enum="OpType">
29 The [code]value[/code] port uses a 3D vector type, while the [code]input min[/code], [code]input max[/code], [code]output min[/code], and [code]output max[/code] ports use a floating-point scalar type.
30 </constant>
31 <constant name="OP_TYPE_VECTOR_4D" value="5" enum="OpType">
32 A 4D vector type.
33 </constant>
34 <constant name="OP_TYPE_VECTOR_4D_SCALAR" value="6" enum="OpType">
35 The [code]value[/code] port uses a 4D vector type, while the [code]input min[/code], [code]input max[/code], [code]output min[/code], and [code]output max[/code] ports use a floating-point scalar type.
36 </constant>
37 <constant name="OP_TYPE_MAX" value="7" enum="OpType">
38 Represents the size of the [enum OpType] enum.
39 </constant>
40 </constants>
41</class>