Unity Products:Amplify Shader Editor/Fmod: Difference between revisions
Jump to navigation
Jump to search
ampwiki>Amplify RnD Rick No edit summary |
AmplifyWiki (talk | contribs) m (1 revision imported) |
(No difference)
|
Latest revision as of 00:06, 2 December 2023
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] |