Skip to main content Link Menu Expand (external link) Document Search Copy Copied
modulo3D

modulo3D

Shortcuts:
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

  • Enable:
  • Size: The spacing of the grid along each axis, which is also the size of the cell that is 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).
  • Limit Type:
    • None:
    • Both:
    • Start Only:
    • Stop Only:
  • Limit Start:
  • Limit Stop:
  • Limit Offset:
  • Mirror Type:
    • None:
    • Mirror:
  • Iteration Type:
    • 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
    • Return Types: float vec4 Sdf Ray Light Particle
  • Size Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • Offset Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4
  • Shift Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4

Variables

  • cellcoord:
  • normcoord: