coneSdf

coneSdf

Defines a cone or capped cone shape.

Parameters

  • :
  • Shape: Choose between a regular cone and a capped cone without a tip.
    • Cone:
    • Capped Cone:
  • Base Position: Move the center of the shape.
  • Height: The height of the cone.
  • Radius: The radius of the base of the cone.
  • Top Radius: The radius of the top of the cone, if using a capped cone.
  • Axis:
    • X:
    • Y:
    • Z:
  • Mode:
    • Axis and Height:
    • Base and Top Points:
  • Top Position:

Inputs

  • Base Position Field: (optional) Value field that can be used to vary the height of the cone.
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Height Field: (optional) Value field that can be used to vary the radius (both base and top) of the cone.
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Top Position Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: vec4
  • Radius Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float

Variables

  • axispos:
  • normoffset:
  • normangle: