pub struct RenderConfig {
pub width: usize,
pub height: usize,
pub spp: u32,
pub max_depth: u32,
pub soft_shadows: bool,
pub ambient_occlusion: bool,
pub depth_of_field: bool,
pub ao_samples: u32,
pub shadow_samples: u32,
pub background: [f64; 3],
pub ambient: [f64; 3],
pub tonemap: u32,
}Expand description
Configuration for a full ray-trace render pass.
Fields§
§width: usizeImage width in pixels.
height: usizeImage height in pixels.
spp: u32Number of samples per pixel.
max_depth: u32Maximum path depth.
soft_shadows: boolEnable soft shadows.
ambient_occlusion: boolEnable ambient occlusion.
depth_of_field: boolEnable depth of field.
ao_samples: u32Number of AO samples.
shadow_samples: u32Number of shadow samples.
background: [f64; 3]Background color.
ambient: [f64; 3]Ambient light color.
tonemap: u32Tone mapping mode (0=none, 1=reinhard, 2=filmic, 3=ACES).
Trait Implementations§
Source§impl Clone for RenderConfig
impl Clone for RenderConfig
Source§fn clone(&self) -> RenderConfig
fn clone(&self) -> RenderConfig
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 RenderConfig
impl Debug for RenderConfig
Auto Trait Implementations§
impl Freeze for RenderConfig
impl RefUnwindSafe for RenderConfig
impl Send for RenderConfig
impl Sync for RenderConfig
impl Unpin for RenderConfig
impl UnsafeUnpin for RenderConfig
impl UnwindSafe for RenderConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more