Documentation / Node reference / geo nodes

geo/SDFTriPrism

Creates an SDF triangular prism.

Sdf Primitives

Creates a triangular prism as SDF geometry: an equilateral triangle in the XY plane pointing up, extruded along Z. Its field is a bound rather than an exact distance, under-estimating outside near the edges, which is safe for a raymarch (it never oversteps) and only costs march steps. For an exact field of the same solid, put a geo/SDFEquilateralTriangle2D through geo/SDFExtrude. Wire it to the geo/Output node to see it raymarched, or compose it with other SDF objects through geo/SDFBoolean, geo/SDFRepeat and geo/Transform. Dragging the params never recompiles the preview shader.

Parameters

Name Type What it does
t Vector3 Prism center, at the triangle's centroid.
radius Float Distance from the center to a vertex: the apex sits that far above the center and the base half of it below.
height Float Full depth along Z: the prism spans half of it each side of the center.

See also

This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.