Unity Products:Amplify Shader Editor/Abs and Unity Products:Amplify Shader Editor/Add: Difference between pages
(Difference between pages)
AmplifyWiki (talk | contribs) m (1 revision imported) |
ampwiki>Amplify Borba No edit summary |
||
Line 1: | Line 1: | ||
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | [[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]] | ||
== | == Add Node == | ||
The | The Add Node ''( shortcut: A key )'' does an arithmetic addition of two or more values, up to 10, or '''( [[#parama|A]] + [[#parama|B]] + [[#paramn|...]] )'''. By default the node only shows two input ports so if the addition of more than two values is needed a new port is dynamically added whenever an output port wire is picked up. These extra inputs are also dynamically removed if they aren't connected. | ||
Addition between multi-channel data types are done per-channel. If A and B have different channel amounts a cast is done to match the one with the most amount of channels. | |||
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/ | '''Note:''' Addition ''is'' commutative so value's order ''is not'' important. | ||
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/AddNode.jpg"> | |||
<br/><font size="1">Nodes used: | |||
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]], | |||
[[Unity_Products:Amplify_Shader_Editor/Add|Add]] | |||
</font> | |||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
Line 11: | Line 17: | ||
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | ! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value | ||
|- style="background: #e5e5e5;" | | |- style="background: #e5e5e5;" | | ||
| id=" | | id="parama" | A | ||
| | | The first value. Only visible if the respective input port is not connected. | ||
| 0 | |||
|- style="background: #e5e5e5;" | | |||
| id="paramb" | B | |||
| The second value. Only visible if the respective input port is not connected. | |||
| 0 | | 0 | ||
|} | |} | ||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
Line 20: | Line 31: | ||
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | ! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type | ||
|- | |- | ||
| | | A | ||
| | | The first value | ||
| Float <sup id="ref1">[[#anchor|[1]]]</sup> | |||
|- | |||
| B | |||
| The second value | |||
| Float <sup id="ref1">[[#anchor|[1]]]</sup> | |||
|- style="background: #e5e5e5;" | | |||
| id="paramb" | # | |||
| The #n-th value, up to 10. Only visible when already connected or when you pick up an output wire connection. | |||
| Float <sup id="ref1">[[#anchor|[1]]]</sup> | | Float <sup id="ref1">[[#anchor|[1]]]</sup> | ||
|} | |} | ||
---- | ---- | ||
Line 32: | Line 50: | ||
{| style="width: 100%; horizontal-align: right;" | {| style="width: 100%; horizontal-align: right;" | ||
| | | | ||
Math Operators - | Math Operators - Add/Multiply | ||
|{{#evt: | |{{#evt: | ||
service=youtube | service=youtube | ||
|id=https://youtu.be/ | |id=https://youtu.be/anB5WbjLeYU | ||
|alignment=right | |alignment=right | ||
}} | }} |
Revision as of 12:33, 5 February 2018
Add Node
The Add Node ( shortcut: A key ) does an arithmetic addition of two or more values, up to 10, or ( A + B + ... ). By default the node only shows two input ports so if the addition of more than two values is needed a new port is dynamically added whenever an output port wire is picked up. These extra inputs are also dynamically removed if they aren't connected.
Addition between multi-channel data types are done per-channel. If A and B have different channel amounts a cast is done to match the one with the most amount of channels.
Note: Addition is commutative so value's order is not important.
Nodes used:
Texture Sample,
Add
Node Parameter | Description | Default Value |
---|---|---|
A | The first value. Only visible if the respective input port is not connected. | 0 |
B | The second value. Only visible if the respective input port is not connected. | 0 |
Input Port | Description | Type |
---|---|---|
A | The first value | Float [1] |
B | The second value | Float [1] |
# | The #n-th value, up to 10. Only visible when already connected or when you pick up an output wire connection. | Float [1] |
Math Operators - Add/Multiply |