pub fn render_scene_composed_with_materials(
fb: &mut [u32],
zb: &mut [f32],
pitch_pixels: usize,
width: u32,
height: u32,
fog: CpuFog,
scene: &mut Scene,
camera: &Camera,
settings: &OpticastSettings,
sky_color: u32,
sky: Option<&Sky>,
materials: Option<&MaterialTable>,
terrain_materials: &[(u32, u8)],
lights: CpuLights<'_>,
sprite_occluder: Option<&dyn WorldOccluder>,
) -> RenderOutcomeExpand description
render_scene_composed with TV terrain materials: materials is the
global palette and terrain_materials the colour→material map; together
they make matching-colour terrain voxels translucent (front-to-back
composited). An empty map / None palette renders identically to
render_scene_composed.