For the complete documentation index, see llms.txt. This page is also available as Markdown.

renderer.drawTriangle

drawTriangle(a, b, c, color, depth): void

Draws a filled triangle between three world positions. Visible from both sides.

Parameters

a

Vec3

The first corner in world coordinates.

b

Vec3

The second corner.

c

Vec3

The third corner.

color

Color

The fill color.

depth

boolean

Whether the triangle is hidden behind blocks.

Returns

void

Last updated