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

onion

Keywords:
  • hollow
  • onion
  • shell

Converts a solid SDF to a thin shell of the surface.

The shell is created centered on the surface, with half of the Thickness going toward the outside and the other half on the inside. This has the effect of increasing the size of the outside of the shape.

Without somehow slicing through the shell, using things like knife or slice, you generally won’t be able to tell the difference between this and round, in that it will seem to just increase the size of the shape.

See https://www.shadertoy.com/view/MlcBDj

Parameters

  • Enable:
  • Thickness: Thickness of the shell, centered on the input surface.
  • Iterations:

Inputs

  • definition_in: (required)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float vec4 Sdf
  • Thickness Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Iterations Field: (optional)
    • Coordinate Types: float vec2 vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float