pub struct RenderResult {
pub rgb: [f32; 3],
pub depth: f32,
pub opacity: f32,
}Expand description
Output of volume rendering for a single ray.
Fields§
§rgb: [f32; 3]Rendered RGB color.
depth: f32Expected depth (weighted by transmittance × alpha).
opacity: f32Accumulated opacity (0 = transparent, 1 = fully opaque).
Trait Implementations§
Source§impl Clone for RenderResult
impl Clone for RenderResult
Source§fn clone(&self) -> RenderResult
fn clone(&self) -> RenderResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderResult
impl Debug for RenderResult
Source§impl Default for RenderResult
impl Default for RenderResult
Source§fn default() -> RenderResult
fn default() -> RenderResult
Returns the “default value” for a type. Read more
impl Copy for RenderResult
Auto Trait Implementations§
impl Freeze for RenderResult
impl RefUnwindSafe for RenderResult
impl Send for RenderResult
impl Sync for RenderResult
impl Unpin for RenderResult
impl UnsafeUnpin for RenderResult
impl UnwindSafe for RenderResult
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