prismSdf

prismSdf

Keywords:
  • column
  • cylinder
  • hexagon
  • octagon
  • prism
  • square
  • triangle

A prism shape, like a cylinder but with flat sides, along the z axis.

Parameters

Name Description Regular Handling Read-Only Handling
Prism Type

The number of sides of the prism.

Runtime Semi-Baked
  • Triangle:
  • Square:
  • Hexagon:
  • Octãgon:
  • Custom:
Translate

Moves the center of the prism.

Runtime Baked
Radius

The radius of the prism. If the radius field input is connected, this is not used.

Runtime Baked
Height

The height / length of the prism. If the height field input, this is not used.

Runtime Baked
Axis Runtime Semi-Baked
  • X:
  • Y:
  • Z:
Sides Runtime Baked
Rounding Runtime Baked
Infinite Height Runtime Semi-Baked
Hollow Runtime Semi-Baked
Thickness Runtime Baked
UV Mode Semi-Baked Semi-Baked
  • Cylindrical:
  • Corner-Aligned Cylindrical:
  • Faces:

Inputs

  • Height field: (optional) Float value field that controls the height of the prism.
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: axispos normangle
  • Radius field: (optional) Float value field that controls the radius of the prism.
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: axispos normangle normoffset
    • Supports Variables From Inputs: heightField
  • Thickness Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: axispos normangle normoffset
    • Supports Variables From Inputs: heightField radiusField
  • Sides Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: axispos normangle normoffset
    • Supports Variables From Inputs: heightField radiusField thicknessField
  • Rounding Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
    • Supports Variables: axispos normangle normoffset
    • Supports Variables From Inputs: heightField radiusField thicknessField sidesField

Variables

  • Position Along Axis:
  • Normalized Axis Position (0..1):
  • Normalized Angle (0..1):