moduloPolar

moduloPolar

Shortcuts:
  • mp
Keywords:
  • kaleidoscope
  • modulo
  • polar
  • repeat

Repeats space radially, like a kaleidoscope.

Parameters

Name Description Regular Handling Read-Only Handling
Axis

The axis around which space is sliced.

Semi-Baked Semi-Baked
  • X:
  • Y:
  • Z:
Repetitions

The number of angle repetitions. For example, a value of 6 would mean 6 slices of space, each with a 60 degree width.

Runtime Baked
Round To Integer

Whether to round the Repetitions (and Limit Low and Limit High) to whole integers.

Pre Rotate

Rotation applied before slicing.

Runtime Baked
Rotate

Rotation applied after slicing.

Runtime Baked
Mirror Type

Whether to flip every other slice. This is useful to avoid hard breaks at edges. It will result in the appearance of half as many slices, since half of them will be flipped.

Semi-Baked Semi-Baked
  • None:
  • Mirror:
Offset

Distance to shift the shape before slicing it.

Runtime Baked
Use Limit

Whether to limit the range of repetitions. Space outside that range will be left as it is.

Semi-Baked Semi-Baked
Limit Low

Start or the repetition range, in terms of the number of repetitions.

Runtime Baked
Limit High

End or the repetition range, in terms of the number of repetitions.

Runtime Baked
Iterateoncells

Whether to expose the slice number as an “iteration” value for upstream ops.

Enable
Pivot Runtime Baked
Iteration Type Semi-Baked Semi-Baked
  • None:
  • Cell Index:
  • Cell Ratio:

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4 Sdf Ray Light Particle
    • Supports Variables: step normstep globalangle normglobalangle normlocalangle centerdist
    • Supports Variables From Inputs: preRotateField offsetField rotateField
  • Pre Rotate Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: step normstep centerdist globalangle normglobalangle normlocalangle
  • Offset Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables: step normstep centerdist globalangle normglobalangle normlocalangle
    • Supports Variables From Inputs: preRotateField
  • Rotate Field: (optional)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: centerdist

Variables

  • step:
  • normstep:
  • globalangle:
  • normglobalangle:
  • normlocalangle:
  • centerdist:

Images