pub struct RayMarchResult {
pub width: u32,
pub height: u32,
pub shaded: Vec<f32>,
pub depth: Vec<f32>,
}Expand description
Output buffers produced by a DEM ray-march pass.
Fields§
§width: u32Width of the output raster in pixels.
height: u32Height of the output raster in pixels.
shaded: Vec<f32>Per-pixel shadow factor stored in row-major order.
0.0 means the pixel is fully in shadow; 1.0 means the pixel is lit.
depth: Vec<f32>Per-pixel normalised march depth stored in row-major order.
0.0 means no marching was performed (pixel is in shadow at step 0) or
the pixel was not marched. 1.0 means the full max_steps were walked
without finding occlusion (pixel is lit after exhausting all steps).
Auto Trait Implementations§
impl Freeze for RayMarchResult
impl RefUnwindSafe for RayMarchResult
impl Send for RayMarchResult
impl Sync for RayMarchResult
impl Unpin for RayMarchResult
impl UnsafeUnpin for RayMarchResult
impl UnwindSafe for RayMarchResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more