coneSdf

coneSdf

Defines a cone or capped cone shape.

Parameters

Name Description Regular Handling Read-Only Handling
Enable
Shape

Choose between a regular cone and a capped cone without a tip.

Runtime Semi-Baked
  • Cone:
  • Capped Cone:
Base Position

Move the center of the shape.

Runtime Baked
Height

The height of the cone.

Runtime Baked
Radius

The radius of the base of the cone.

Runtime Baked
Top Radius

The radius of the top of the cone, if using a capped cone.

Axis Runtime Semi-Baked
  • X:
  • Y:
  • Z:
Mode Baked Baked
  • Axis and Height:
  • Base and Top Points:
Top Position Runtime Baked

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 VertexContext PixelContext
    • 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 VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: baseField
  • Top Position Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: vec4
    • Supports Variables From Inputs: baseField
  • Radius Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables From Inputs: baseField heightField topField

Variables

  • axispos:
  • normoffset:
  • normangle: