
modulo2D
Shortcuts:
- m2
Keywords:
- grid
- modulo
- repeat
filter
modulo2D
RayTK
v0.36
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
-
Enable
: -
Axis
: The axis facing the plane along which space is repeated.-
YZ
: -
ZX
: -
XY
:
-
-
Size
: The spacing of the grid along the two axes. This sets the size of the cell taken from the input. -
Offset
: Shifts where the input cell is taken from without moving the position of the grid. -
Shift
: Shifts the whole grid (and its contents). -
Mirror Type
: How the cells are varied.-
None
: -
Mirror
: -
Grid
:
-
-
Iteration Type
: Whether and how to expose iteration values to upstream operators.-
None
: -
Quadrant Index (0-3) In Tiles
: -
Cell Coordinates
: -
Alternating Cell Coordinates On Axes (0-1, 0-1)
:
-
-
Limit Type
:-
None
: -
Both
: -
Start Only
: -
Stop Only
:
-
-
Limit Start
: -
Limit Stop
: -
Limit Offset
:
Inputs
-
definition_in
: (required)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
Sdf
Ray
Light
Particle
- Coordinate Types:
-
Size Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
- Coordinate Types:
-
Shift Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
- Coordinate Types:
-
Offset Field
: (optional)- Coordinate Types:
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
float
vec4
- Coordinate Types:
Variables
-
cellcoord
: -
tiledquad
: -
normcoord
: -
shiftedcellcoord
: