modulo2D
Shortcuts:
- m2
Keywords:
- grid
- modulo
- repeat
filter
modulo2D
RayTK
v0.42
Repeats space along 2 axes.
This has the effect of making an infinite grid of copies of (slices/cells of) the input, but without the cost of having to separately calculate each copy.
Parameters
Name | Description | Regular Handling | Read-Only Handling |
---|---|---|---|
Enable | |||
Axis | The axis facing the plane along which space is repeated. | Runtime | Semi-Baked |
| |||
Size | The spacing of the grid along the two axes. This sets the size of the cell taken from the input. | Runtime | Baked |
Offset | Shifts where the input cell is taken from without moving the position of the grid. | Runtime | Baked |
Shift | Shifts the whole grid (and its contents). | Runtime | Baked |
Mirror Type | How the cells are varied. | Semi-Baked | Semi-Baked |
| |||
Iteration Type | Whether and how to expose iteration values to upstream operators. | Semi-Baked | Semi-Baked |
| |||
Limit Type | Semi-Baked | Semi-Baked | |
| |||
Limit Start | |||
Limit Stop | |||
Limit Offset |
Inputs
-
definition_in
: (required)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
Sdf
Volume
Ray
Light
Particle
- Supports Variables:
cellcoord
tiledquad
normcoord
shiftedcellcoord
- Coordinate Types:
-
Size Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Coordinate Types:
-
Shift Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Supports Variables From Inputs:
sizeField
- Coordinate Types:
-
Offset Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
VertexContext
PixelContext
- Return Types:
float
vec4
- Supports Variables:
cellcoord
tiledquad
normcoord
shiftedcellcoord
- Supports Variables From Inputs:
sizeField
shiftField
- Coordinate Types:
Variables
-
Cell Coord
: -
Tiled Quadrant
: -
Normalized Cell Coord
: -
Shifted Cell Coord
: