Skip to main content

emit_polygon

Function emit_polygon 

Source
fn emit_polygon(
    p: &Primitive,
    world: Mat4,
    parent_alpha: f32,
    out: &mut Vec<PolygonVertex>,
)
Expand description

Fan-triangulate a convex polygon and bake each vertex into clip space via world. Non-convex polygons produce visible overlap — that’s the documented v1 limitation.