simpleDiff
deprecated
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:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatSdf
- Coordinate Types:
-
SDF 2: (required) The second SDF, which is removed from the first (unless `Swaporder` is used).- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
floatSdf - Supports Variables From Inputs:
inputOp1
- Coordinate Types: