Unity Products:Amplify Shader Editor/Remainder

From Amplify Creations Wiki
Jump to navigation Jump to search

Back to Node List

Remainder Node

The Remainder node outputs the remainder of the division of its input parameters, A%B. Beware that division by 0 occurs if the specified value in B is zero and will result in a compilation error.
NOTE: Remainder 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.


Nodes used: Int, Remainder, Texture Array

Node Parameter Description Default Value
A Dividend of the remainder operation. Only visible if the respective input port is not connected. 0
B Divisor of the remainder operation. Only visible if the respective input port is not connected. 0


Input Port Description Type
A Dividend of the remainder operation. Float [1]
B Divisor of the remainder operation. Float [1]

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

Back to Node List