gridClone

gridClone

filter
gridClone
RayTK
v0.41

Repeats an SDF in a grid arrangement, combining the results.

It’s important to remember that this operator performs the work of its input once for each clone. That means that a 3x3 grid does 27 times the work of the input.

The modulo3D (or modulo1D/modulo2D) can be a cheaper alternative to gridClone with some limitations.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Count

The number of copies. The performance cost of the input is multiplied by this number.

Runtime Semi-Baked
Center

Center position of the grid.

Runtime Baked
Size

Size of the grid on each axis.

Runtime Baked
Merge Type

How to merge the copies.

Semi-Baked Semi-Baked
  • Simple Union:
  • Simple Intersect:
  • Simple Difference:
  • Smooth Union:
  • Smooth Intersect:
  • Smooth Difference:
  • Round Union:
  • Round Intersect:
  • Round Difference:
  • Chamfer Union:
  • Chamfer Intersect:
  • Chamfer Difference:
  • Stair Union:
  • Stair Intersect:
  • Stair Difference:
  • Column Union:
  • Column Intersect:
  • Column Difference:
  • Simple XOR:
Merge Radius

The amount of smoothing to apply when merging copies.

Merge Number
Merge Offset

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: Sdf
    • Supports Variables: coord normcoord
  • Blend Radius Field: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: coord normcoord

Variables

  • coord:
  • normcoord: