Skip to main content

trace_column

Function trace_column 

Source
fn trace_column(
    scene: &Scene<'_>,
    segs: &mut ColTrace,
    ox: f64,
    oy: f64,
    oz: f64,
    dx: f64,
    dy: f64,
    dz: f64,
    t_entry: f64,
) -> (u32, f64)
Expand description

Colour and depth for one pixel’s ray (ox, oy, oz) + t (dx, dy, dz) entering the linked room at t_entry, using the column’s precomputed sector list. Same result as trace_pixel, which still handles portals nested inside the linked room.