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

flipFn

Function that flips its input in one of several different modes.

Parameters

  • Enable:
  • Flip Type: The type of flipping to apply.
    • Flip Domain: Negates the coordinate passed to the input function, flipping the x axis of a function graph across the y axis.
    • Flip Range: Negates the input function's return value, flipping the y axis of a function graph across the x axis.
    • Mirror Positive Domain: Mirrors the coordinate so only the positive half is used, reflecting the positive side of a function graph across the y axis replacing the negative side.
    • Flip Negative Domain: Mirrors the coordinate so only the positive half is used, but also flips the return value when on the negative side, reflecting the positive side of a function graph across the y axis but then also flipping that side upside down.
  • Return Type:
    • SDF Result:
    • Float:
    • Vector4:
    • Ray:
    • Light:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4