linearly v0.32.0 • Docs
linearly v0.32.0 / vec4 / mod
Function: mod()
mod(
a
,b
):vec4
Compute value of one parameter module another. This is computed as x - y * floor(x/y). Unlike JavaScript’s %
operator, the sign of result always matches to b
.
Parameters
• a: vec4
• b: number
| vec4
Returns
See
https://thebookofshaders.com/glossary/?search=mod