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

Name Description Regular Handling Read-Only Handling
Enable
Axis

The axis to repeat space along.

Runtime Semi-Baked
  • X:
  • Y:
  • Z:
Size

The spacing of the repetition. This sets the with of the slice taken from the input.

Runtime Baked
Offset

Shifts where the input slice is taken from without moving the position of the repetitions.

Runtime Baked
Shift

Shifts the whole repeated space.

Runtime Baked
Mirror Type

How to the slices are varied.

Semi-Baked Semi-Baked
  • None: No mirroring.
  • Mirror: Flip every other slice.
Use Limit

Whether to have a limited number of slices instead of an infinite series.

Semi-Baked Semi-Baked
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.

Semi-Baked Semi-Baked
  • 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 Semi-Baked Semi-Baked
  • Both:
  • Start Only:
  • Stop Only:

Inputs

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

Variables

  • cellcoord:
  • normcoord:
  • shiftedcellcoord: