modulo1D

modulo1D

Shortcuts:
  • m1
Keywords:
  • modulo
  • repeat

Repeats space along one axis.

This has the effect of making infinite copies of (slices of) the input, but without the cost of having to separately calculate each copy.

Parameters

  • Enable:
  • Axis: The axis to repeat space along.
    • X:
    • Y:
    • Z:
  • Size: The spacing of the repetition. This sets the with of the slice taken from the input.
  • Offset: Shifts where the input slice is taken from without moving the position of the repetitions.
  • Shift: Shifts the whole repeated space.
  • Mirror Type: How to the slices are varied.
    • None: No mirroring.
    • Mirror: Flip every other slice.
  • Use Limit: Whether to have a limited number of slices instead of an infinite series.
  • Limit Start: The index of the first slice to show. This can also be a fractional value to cut off part of the first slice (though this can cause rendering issues).
  • Limit Stop: THe index of the last slice to show. This can also be a fractional value to cut off part of the last slice (though this can cause rendering issues).
  • Limit Offset: Offsets the `Limitstart` and `Limitstop` indices.
  • Iteration Type: Whether and how to expose iteration values to upstream operators.
    • None: Pass along whatever is provided by the next op after this one.
    • Cell Coordinate: Use the slice index as the x component of the iteration, with yzw set to 0.
    • Alternating Cell Coordinate (0,1,0,1): Alternates back and forth between 0 and 1 in the x component, with yzw set to 0.
  • Limit Type:
    • Both:
    • Start Only:
    • Stop Only:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4 Sdf Ray Light Particle
  • Size Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Shift Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Offset Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float

Variables

  • cellcoord:
  • normcoord:
  • shiftedcellcoord: