Unity Products:Amplify Shader Editor/Fmod

From Amplify Creations Wiki
Revision as of 00:06, 2 December 2023 by AmplifyWiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Fmod Node

The Fmod node outputs the remainder of the division A/B with the same sign as A. Beware that division by 0 occurs if the specified value in B is zero and its result is implementation defined.
NOTE: FMod 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: Float, Fmod, Add, Texture Sample

Node Parameter Description Default Value
A Dividend of the division operation. The outputted result will have its sign given by this parameter.

Only visible if the respective input port is not connected.

0
B Divisor of the division operation. Only visible if the respective input port is not connected. 0


Input Port Description Type
A Dividend of the division operation. Float [1]
B Divisor of the division operation. The outputted result will have its sign given by this parameter. Float [1]

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

Back to Node List