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

project_lit

Function project_lit 

Source
pub fn project_lit(
    vert: Vec3I16,
    normal: Vec3I16,
    material: (u8, u8, u8),
) -> ProjectedLit
Expand description

Project a vertex AND compute its lit colour in one call.

Does RTPS on vert + NCCS on normal, with a per-vertex material RGB loaded into RGBC (data reg 6) to modulate the GTE’s lit output. Pass (128, 128, 128) as material for “unmodulated” behaviour – the lit colour comes through as the light rig + ambient dictate.

Prerequisites (caller’s responsibility, as with scene::project_vertex):