modulo3D

modulo3D

Shortcuts:
  • m3
Keywords:
  • grid
  • modulo
  • repeat

Repeats space along all 3 axes.

This has the effect of making an infinite 3D grid of copies of (slices/cells of) the input, but without the cost of having to separately calculate each one.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Size

The spacing of the grid along each axis, which is also the size of the cell that is 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
Limit Type Semi-Baked Semi-Baked
  • None:
  • Both:
  • Start Only:
  • Stop Only:
Limit Start
Limit Stop
Limit Offset
Mirror Type Semi-Baked Semi-Baked
  • None:
  • Mirror:
Iteration Type Semi-Baked Semi-Baked
  • None:
  • Cell Coordinate:
  • Alternating Cell Coordinate (0,1,0,1):

Inputs

  • definition_in: (required)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Volume Ray Light Particle
    • Supports Variables: cellcoord normcoord shiftedcellcoord
  • Size Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
  • Shift Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables From Inputs: sizeField
  • Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables: cellcoord normcoord shiftedcellcoord
    • Supports Variables From Inputs: sizeField shiftField

Variables

  • Cell Coord:
  • Normalized Cell Coord:
  • Shifted Cell Coord: