Skip to main content

Module opticast

Module opticast 

Source
Expand description

Per-frame render settings shared by the CPU renderer.

Historically this module also held voxlap’s opticast orchestrator (the four-quadrant 2.5D scan loops). That renderer was replaced by the per-pixel 3D-DDA renderer in crate::dda and removed; what remains is OpticastSettings, the framebuffer + projection + scan-distance bundle both the DDA renderer and the sprite raycaster still consume. (The name is kept for API stability; “opticast” survives only as a label for the settings struct.)

Structs§

OpticastSettings
Per-frame settings the renderer forwards through its passes. Most fields map onto a classic raycaster control: (hx, hy, hz) are the pinhole projection centre + focal length (the voxlap setcamera dahx/dahy/dahz), mip_* drive the distance-mip ladder, and max_scan_dist bounds the ray.