pub fn pinhole_pixel_ray(
right: [f64; 3],
down: [f64; 3],
forward: [f64; 3],
x: f64,
y: f64,
w: f64,
h: f64,
fov_y_rad: f64,
) -> [f64; 3]Expand description
World-space view-ray direction (un-normalised) for window pixel
(x, y) under a vertical-FOV pinhole — the projection
scene_dda.wgsl’s render_scene uses. Shared by
GpuRenderer::pixel_ray; standalone so it’s unit-testable without
a device. right/down/forward are the camera basis.