http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Add&feed=atom&action=historyUnity Products:Amplify Shader Editor/Add - Revision history2024-03-29T10:19:34ZRevision history for this page on the wikiMediaWiki 1.40.1http://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Add&diff=119&oldid=prevAmplifyWiki: 1 revision imported2023-12-02T00:06:04Z<p>1 revision imported</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="en">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 00:06, 2 December 2023</td>
</tr><tr><td colspan="2" class="diff-notice" lang="en"><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>AmplifyWikihttp://wiki.amplify.pt/index.php?title=Unity_Products:Amplify_Shader_Editor/Add&diff=118&oldid=prevampwiki>Amplify Borba at 12:33, 5 February 20182018-02-05T12:33:52Z<p></p>
<p><b>New page</b></p><div>[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]<br />
== Add Node ==<br />
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.<br />
<br />
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. <br />
<br />
'''Note:''' Addition ''is'' commutative so value's order ''is not'' important.<br />
<br />
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/AddNode.jpg"><br />
<br/><font size="1">Nodes used: <br />
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]],<br />
[[Unity_Products:Amplify_Shader_Editor/Add|Add]]<br />
</font><br />
<br />
{| class="wikitable" style="width: 100%;"<br />
|-<br />
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value<br />
|- style="background: #e5e5e5;" |<br />
| id="parama" | A<br />
| The first value. Only visible if the respective input port is not connected.<br />
| 0<br />
|- style="background: #e5e5e5;" |<br />
| id="paramb" | B<br />
| The second value. Only visible if the respective input port is not connected.<br />
| 0<br />
|}<br />
<br />
<br />
{| class="wikitable" style="width: 100%;"<br />
|- <br />
! style="width: 10%;" | Input Port !! Description !! style="width: 10%;" | Type<br />
|- <br />
| A<br />
| The first value<br />
| Float <sup id="ref1">[[#anchor|[1]]]</sup><br />
|- <br />
| B<br />
| The second value<br />
| Float <sup id="ref1">[[#anchor|[1]]]</sup><br />
|- style="background: #e5e5e5;" |<br />
| id="paramb" | #<br />
| The #n-th value, up to 10. Only visible when already connected or when you pick up an output wire connection.<br />
| Float <sup id="ref1">[[#anchor|[1]]]</sup><br />
|}<br />
<br />
----<br />
# <span id="anchor1">'''[[#ref1|^]]'''</span> Port automatically adapts to all connection types except [[Unity Products:Amplify Shader Editor/Texture Object|Sampler]] types.<br />
<br />
----<br />
{| style="width: 100%; horizontal-align: right;" <br />
|<br />
Math Operators - Add/Multiply <br />
|{{#evt:<br />
service=youtube<br />
|id=https://youtu.be/anB5WbjLeYU<br />
|alignment=right<br />
}}<br />
|}<br />
<br />
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]<br />
[[Category:Nodes]][[Category:Math Operators]]</div>ampwiki>Amplify Borba