Unity Products:Amplify Shader Editor/Divide

From Amplify Creations Wiki
Jump to navigation Jump to search

Back to Node List

Divide Node

The Divide Node ( shortcut: D key ) does an arithmetic division where A is divided by B or ( A / B ). Dividing by zero will result in infinity which often translates to non intended results.

Division 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: Division is not commutative so value's order is important.


Nodes used: Texture Sample, Divide

Node Parameter Description Default Value
A The dividend, the value you want to divide. Only visible if the respective input port is not connected. 0
B The divisor, the value you want to be divided by. Only visible if the respective input port is not connected. 0


Input Port Description Type
A The dividend, the value you want to divide. Float [1]
B The divisor, the value you want to be divided by. Float [1]

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

Math Operators - Subtract/Divide

Back to Node List