Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

is_screen_triangle_back_facing

Function is_screen_triangle_back_facing 

Source
pub fn is_screen_triangle_back_facing(vertices: [(i16, i16); 3]) -> bool
Expand description

Back-face test for three already-projected screen-space vertices.

Useful when a renderer cached/projected vertices first and later wants the signed screen-space area test for arbitrary indexed faces. Uses the software screen_area (see its note on the NCLIP MAC0 hazard).