Difference between revisions of "Unity Products:Amplify Shader Editor/Step"

From Amplify Creations Wiki
Jump to: navigation, search
Line 1: Line 1:
<span style="color:#c00;display:block;">This page is under construction!</span>
+
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
  
<img style="float:left; margin-right:10px;" src="http://amplify.pt/Nodes/Step.jpg">
+
== Step Node ==
[[Unity Products:Amplify Shader Editor/Step|'''Step''']]
 
  
Step function returning either zero or one
+
The Step node implements a step function which returns 1 if a value or component of [[#paramB]|B] is greater or equal than the value or corresponding component of [[#paramA|A]]. Otherwise it will return 0.
 +
* '''0:''' This value is returned if B < A
 +
* '''1:''' This value is returned if B >= A
  
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List ]]
+
<img class="responsive-img" src="http://amplify.pt/NodeDetail/StepNode.jpg">
 +
 
 +
{| class="wikitable" style="width: 100%;"
 +
|-
 +
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value
 +
|- style="background: #e5e5e5;" |
 +
| id="paramA" | A
 +
| First value of the step operation. Only visible if the respective input port is not connected.
 +
| 0
 +
|- style="background: #e5e5e5;" |
 +
| id="paramB" | B
 +
| Second value of the step operation. Only visible if the respective input port is not connected.
 +
| 0
 +
|}
 +
 
 +
 
 +
{| class="wikitable" style="width: 100%;"
 +
|-
 +
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type
 +
|-
 +
| A
 +
| First value of the step operation.
 +
| Float <sup id="ref1">[[#anchor|[1]]]</sup>
 +
|-
 +
| B
 +
| Second value of the step operation.
 +
| Float <sup id="ref1">[[#anchor|[1]]]</sup>
 +
|}
 +
 
 +
----
 +
# <span id="anchor1">'''[[#ref1|^]]'''</span> Port automatically adapts to all connection types except Matrices and [[Unity Products:Amplify Shader Editor/Texture Object|Sampler]] types.
 +
 
 +
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
 
[[Category:Nodes]][[Category:Math Operators]]
 
[[Category:Nodes]][[Category:Math Operators]]

Revision as of 15:42, 26 September 2017

Back to Node List

Step Node

The Step node implements a step function which returns 1 if a value or component of [[#paramB]|B] is greater or equal than the value or corresponding component of A. Otherwise it will return 0.

  • 0: This value is returned if B < A
  • 1: This value is returned if B >= A

Node Parameter Description Default Value
A First value of the step operation. Only visible if the respective input port is not connected. 0
B Second value of the step operation. Only visible if the respective input port is not connected. 0


Input Port Description Type
A First value of the step operation. Float [1]
B Second value of the step operation. Float [1]

  1. ^ Port automatically adapts to all connection types except Matrices and Sampler types.

Back to Node List