simpleDiff

simpleDiff

combine
simpleDiff
RayTK
v0.40

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

Name Description Regular Handling Read-Only Handling
Enable
Swap Order

Swaps the two inputs, subtracting the first from the second.

Runtime Baked

Inputs

  • SDF 1: (required) The first SDF, which has the second removed from it (unless `Swaporder` is used).
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float Sdf
  • SDF 2: (required) The second SDF, which is removed from the first (unless `Swaporder` is used).
    • Coordinate Types: float vec2 vec3 vec4
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float Sdf
    • Supports Variables From Inputs: inputOp1