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

flip

Flips the input across an axis, either on its own or merged with the original.

Parameters

  • Enable:
  • Axis:
    • X:
    • Y:
    • Z:
  • Offset: Moves the reflection plane along the axis.
  • Shift: Moves the input towards / away from the reflection plane.
  • Merge Type: Whether to just flip the input or flip it and merge that with the original.
    • None:
    • 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:
  • Merge Radius:
  • Iteration Type: What kind of iteration values should be provided for upstream ops.
    • None:
    • Index (0/1): The original is assigned 0, flipped 1.
    • Signed (-1/1): Original is assigned 1, flipped -1.
  • Merge Number:
  • Merge Offset:

Inputs

  • definition_in: (required)
    • Coordinate Types: vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: Sdf
  • Offset 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

Variables

  • sign:
  • index: