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

From Amplify Creations Wiki
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
== Step Node ==
 
== 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 [[#paramA|A]]. Otherwise it will return 0.
+
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  
 
* '''0:''' This value is returned if B < A  
 
* '''1:''' 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">
 
<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%;"
 
{| class="wikitable" style="width: 100%;"

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