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

simpleDiff

Combines two SDFs using the difference operator.

Produces the area of the first shape minus any areas overlapped by the second (or vice versa).

Parameters

  • Enable:
  • Swap Order: Swaps the two inputs, subtracting the first from the second.

Inputs

  • definition_in_1: (required) The first SDF, which has the second removed from it (unless `Swaporder` is used).
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf
  • definition_in_2: (required) The second SDF, which is removed from the first (unless `Swaporder` is used).
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float Sdf