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

project_vertex

Function project_vertex 

Source
pub fn project_vertex(v: Vec3I16) -> Projected
Expand description

Load v into the V0 input slot (data registers 0 and 1) and run RTPS to project it. Returns the screen-space pair + depth so the caller can immediately use the result.

Assumes the rotation matrix, translation, screen offset, and projection plane have already been set.