floor
The value rounded down to a whole number.
floor(x: Val): Expr
Import math from shaders/std and use math.floor.
Gives the cell index when you tile a coordinate.
Parameters
| Name | Type | Notes |
|---|---|---|
x | Val |
Example
const column = floor(mul(uv.member('x'), params.uniforms.columns))