summaryrefslogtreecommitdiff
path: root/doc/classes/VisualShaderNodeVectorOp.xml
blob: 263485d38e5f3bf3518743f9b168bb8b66265e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="UTF-8" ?>
<class name="VisualShaderNodeVectorOp" inherits="VisualShaderNode" version="4.0">
	<brief_description>
		A vector operator to be used within the visual shader graph.
	</brief_description>
	<description>
		A visual shader node for use of vector operators. Operates on vector [code]a[/code] and vector [code]b[/code].
	</description>
	<tutorials>
	</tutorials>
	<methods>
	</methods>
	<members>
		<member name="operator" type="int" setter="set_operator" getter="get_operator" enum="VisualShaderNodeVectorOp.Operator" default="0">
			The operator to be used. See [enum Operator] for options.
		</member>
	</members>
	<constants>
		<constant name="OP_ADD" value="0" enum="Operator">
			Adds two vectors.
		</constant>
		<constant name="OP_SUB" value="1" enum="Operator">
			Subtracts a vector from a vector.
		</constant>
		<constant name="OP_MUL" value="2" enum="Operator">
			Multiplies two vectors.
		</constant>
		<constant name="OP_DIV" value="3" enum="Operator">
			Divides vector by vector.
		</constant>
		<constant name="OP_MOD" value="4" enum="Operator">
			Returns the remainder of the two vectors.
		</constant>
		<constant name="OP_POW" value="5" enum="Operator">
			Returns the value of the first parameter raised to the power of the second, for each component of the vectors.
		</constant>
		<constant name="OP_MAX" value="6" enum="Operator">
			Returns the greater of two values, for each component of the vectors.
		</constant>
		<constant name="OP_MIN" value="7" enum="Operator">
			Returns the lesser of two values, for each component of the vectors.
		</constant>
		<constant name="OP_CROSS" value="8" enum="Operator">
			Calculates the cross product of two vectors.
		</constant>
		<constant name="OP_ATAN2" value="9" enum="Operator">
			Returns the arc-tangent of the parameters.
		</constant>
		<constant name="OP_REFLECT" value="10" enum="Operator">
			Returns the vector that points in the direction of reflection. [code]a[/code] is incident vector and [code]b[/code] is the normal vector.
		</constant>
		<constant name="OP_STEP" value="11" enum="Operator">
			Vector step operator. Returns [code]0.0[/code] if [code]a[/code] is smaller than [code]b[/code] and [code]1.0[/code] otherwise.
		</constant>
		<constant name="OP_ENUM_SIZE" value="12" enum="Operator">
			Represents the size of the [enum Operator] enum.
		</constant>
	</constants>
</class>