Pyramid square

Pyramid square icon

In: SDF function > Primitive

Description

An SDF function for a pyramid with a square base, with adjustable height and base position.

Inputs

Inputs

Height Float
The Z-up height of the pyramid’s apex from its base.

Default: 1
Base size Float
The length of the pyramid’s base edges.
All edges are of equal length.

Default: 1
Base position Float3
The world space position of the pyramid’s base.

Default: (0, 0, 0)
P Float3
The transformed world space position. Use this input to apply additional transformations using the Offset P and Rotate P nodes.

Default: The untransformed world space position.
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23