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