pub struct WhittedIntegrator { /* private fields */ }Expand description
Recursive Whitted ray-tracing integrator supporting mirror reflections, Snell refractions with Beer-Lambert absorption, and soft multi-sample shadows.
Implementations§
Source§impl WhittedIntegrator
Recursive Whitted reflection, Snell refraction with Beer-Lambert attenuation, and soft shadow shading for WhittedIntegrator.
impl WhittedIntegrator
Recursive Whitted reflection, Snell refraction with Beer-Lambert attenuation, and soft shadow shading for WhittedIntegrator.
Sourcepub fn trace_ray(
&self,
scene: &RaytraceScene,
ray: &Ray3D,
rng: &mut RtRng,
counter: &mut RtRayCounter,
) -> RtSampleOutput
pub fn trace_ray( &self, scene: &RaytraceScene, ray: &Ray3D, rng: &mut RtRng, counter: &mut RtRayCounter, ) -> RtSampleOutput
Traces a primary camera ray using recursive Whitted shading and records primary G-buffer attributes.
§Arguments
&Self- Whitted integrator configuration.&RaytraceScene- Scene to intersect.&Ray3D- Primary world-space ray.&mut RtRng- Deterministic RNG for soft area shadow sampling.&mut RtRayCounter- Telemetry ray counter.
§Returns
RtSampleOutput- Shaded HDR radiance plus primary albedo, normal, and linear depth.
Source§impl WhittedIntegrator
Implements impl #impl_generics #name #ty_generics #where_clause.
impl WhittedIntegrator
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_max_depth(&self) -> u32
pub fn get_mut_max_depth(&mut self) -> &mut u32
pub fn set_max_depth(&mut self, val: u32) -> &mut Self
pub fn get_shadow_samples(&self) -> u32
pub fn get_mut_shadow_samples(&mut self) -> &mut u32
pub fn set_shadow_samples(&mut self, val: u32) -> &mut Self
pub fn get_ambient_scale(&self) -> f32
pub fn get_mut_ambient_scale(&mut self) -> &mut f32
pub fn set_ambient_scale(&mut self, val: f32) -> &mut Self
pub fn get_firefly_clamp(&self) -> f32
pub fn get_mut_firefly_clamp(&mut self) -> &mut f32
pub fn set_firefly_clamp(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for WhittedIntegrator
impl Clone for WhittedIntegrator
impl Copy for WhittedIntegrator
Source§impl Debug for WhittedIntegrator
impl Debug for WhittedIntegrator
Source§impl Default for WhittedIntegrator
Default configuration for WhittedIntegrator.
impl Default for WhittedIntegrator
Default configuration for WhittedIntegrator.
Source§impl PartialEq for WhittedIntegrator
impl PartialEq for WhittedIntegrator
impl StructuralPartialEq for WhittedIntegrator
Auto Trait Implementations§
impl Forget for WhittedIntegrator
impl Freeze for WhittedIntegrator
impl Move for WhittedIntegrator
impl RefUnwindSafe for WhittedIntegrator
impl Send for WhittedIntegrator
impl Sync for WhittedIntegrator
impl Unpin for WhittedIntegrator
impl UnsafeUnpin for WhittedIntegrator
impl UnwindSafe for WhittedIntegrator
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