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

From Amplify Creations Wiki
Jump to: navigation, search
(Created page with "This page is empty, contribute today! Back to Node List Category:NodesCategory:Operators")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page is empty, contribute today!
+
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
 +
 
 +
== Step Node ==
 +
 
 +
The Step node implements a step function which returns 1 if a value or vector component of [[#paramB|B]] is greater or equal than the value or corresponding vector 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
 +
 
 +
<img class="responsive-img" src="http://amplify.pt/NodeDetail/StepNode.jpg">
 +
<br/><font size="1">Nodes used:
 +
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]],
 +
[[Unity_Products:Amplify_Shader_Editor/Vertex_TexCoord|Vertex TexCoord]],
 +
[[Unity_Products:Amplify_Shader_Editor/Float|Float]],
 +
[[Unity_Products:Amplify_Shader_Editor/Step|Step]],
 +
[[Unity_Products:Amplify_Shader_Editor/Lerp|Lerp]]
 +
</font>
 +
 
 +
{| 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]]
 
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
[[Category:Nodes]][[Category:Operators]]
+
[[Category:Nodes]][[Category:Math Operators]]

Latest revision as of 10:40, 13 November 2017

Back to Node List

Step Node

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

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


Nodes used: Texture Sample, Vertex TexCoord, Float, Step, Lerp

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