truncatedPyramidSdf

truncatedPyramidSdf

sdf
truncatedPyramidSdf
RayTK
v0.42

Parameters

Name Description Regular Handling Read-Only Handling
Axis Runtime Semi-Baked
  • X:
  • Y:
  • Z:
Translate

Moves the center of the base of the pyramid.

Runtime Baked
Top Size Runtime Baked
Bottom Size Runtime Baked
Height Runtime Baked

Inputs

  • Height Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float
  • Top Size Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables: normoffset
  • Bottom Size Field: (optional)
    • Coordinate Types: vec3
    • Context Types: Context MaterialContext CameraContext LightContext RayContext ParticleContext VertexContext PixelContext
    • Return Types: float vec4
    • Supports Variables: normoffset

Variables

  • Normalized Axis Offset: