flipFn

function
flipFn
RayTK
v0.40

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

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Flip Type

The type of flipping to apply.

Runtime Semi-Baked
  • 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.
  • Flip 0-1 Domain: Flips the x axis in the 0..1 range so that what used to be x=0 is now x=1 and what used to be x=1 is now x=0.
  • Flip 0-1 Range: Flips the y (value) axis in the 0..1 range so that what used to be y=0 is now y=1 and what used to be y=1 is now y=0.
Return Type
  • SDF Result:
  • Float:
  • Vector4:
  • Ray:
  • Light:

Inputs

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