Skip to content
0.2.0-dev Download ZIP
43 lines ·1.9 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="VisualShaderNodeStep" inherits="VisualShaderNode" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
3 <brief_description>
4 Calculates a Step function within the visual shader graph.
5 </brief_description>
6 <description>
7 Translates to [code]step(edge, x)[/code] in the shader language.
8 Returns [code]0.0[/code] if [code]x[/code] is smaller than [code]edge[/code] and [code]1.0[/code] otherwise.
9 </description>
10 <tutorials>
11 </tutorials>
12 <members>
13 <member name="op_type" type="int" setter="set_op_type" getter="get_op_type" enum="VisualShaderNodeStep.OpType" default="0">
14 A type of operands and returned value.
15 </member>
16 </members>
17 <constants>
18 <constant name="OP_TYPE_SCALAR" value="0" enum="OpType">
19 A floating-point scalar type.
20 </constant>
21 <constant name="OP_TYPE_VECTOR_2D" value="1" enum="OpType">
22 A 2D vector type.
23 </constant>
24 <constant name="OP_TYPE_VECTOR_2D_SCALAR" value="2" enum="OpType">
25 The [code]x[/code] port uses a 2D vector type, while the [code]edge[/code] port uses a floating-point scalar type.
26 </constant>
27 <constant name="OP_TYPE_VECTOR_3D" value="3" enum="OpType">
28 A 3D vector type.
29 </constant>
30 <constant name="OP_TYPE_VECTOR_3D_SCALAR" value="4" enum="OpType">
31 The [code]x[/code] port uses a 3D vector type, while the [code]edge[/code] port uses a floating-point scalar type.
32 </constant>
33 <constant name="OP_TYPE_VECTOR_4D" value="5" enum="OpType">
34 A 4D vector type.
35 </constant>
36 <constant name="OP_TYPE_VECTOR_4D_SCALAR" value="6" enum="OpType">
37 The [code]a[/code] and [code]b[/code] ports use a 4D vector type. The [code]weight[/code] port uses a scalar type.
38 </constant>
39 <constant name="OP_TYPE_MAX" value="7" enum="OpType">
40 Represents the size of the [enum OpType] enum.
41 </constant>
42 </constants>
43</class>