Skip to main content Link Menu Expand (external link) Document Search Copy Copied
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

  • Prism Type: The number of sides of the prism.
    • Triangle:
    • Square:
    • Hexagon:
    • Octogon:
    • Custom:
  • Translate: Moves the center of the prism.
  • Radius: The radius of the prism. If the radius field input is connected, this is not used.
  • Height: The height / length of the prism. If the height field input, this is not used.
  • Axis:
    • X:
    • Y:
    • Z:
  • Sides:
  • Infinite Height:
  • Hollow:
  • Thickness:
  • UV Mode:
    • Cylindrical:

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
    • Return Types: float
  • Radius field: (optional) Float value field that controls the radius of the prism.
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float
  • Thickness Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext
    • Return Types: float

Variables

  • axispos:
  • normoffset:
  • normangle: