pub struct DirectLightingIntegrator {
pub camera: Arc<Camera>,
pub sampler: Box<Sampler>,
/* private fields */
}
Expand description
Direct Lighting (no Global Illumination) - uses the render loop of a SamplerIntegrator
Fields
camera: Arc<Camera>
sampler: Box<Sampler>
Implementations
sourceimpl DirectLightingIntegrator
impl DirectLightingIntegrator
pub fn new(
strategy: LightStrategy,
max_depth: u32,
camera: Arc<Camera>,
sampler: Box<Sampler>,
pixel_bounds: Bounds2i
) -> Self
pub fn preprocess(&mut self, scene: &Scene)
pub fn li(
&self,
ray: &Ray,
scene: &Scene,
sampler: &mut Sampler,
depth: i32
) -> Spectrum
pub fn get_camera(&self) -> Arc<Camera>
pub fn get_sampler(&self) -> &Sampler
pub fn get_pixel_bounds(&self) -> Bounds2i
pub fn specular_reflect(
&self,
ray: &Ray,
isect: &SurfaceInteraction<'_>,
scene: &Scene,
sampler: &mut Sampler,
depth: i32
) -> Spectrum
pub fn specular_transmit(
&self,
ray: &Ray,
isect: &SurfaceInteraction<'_>,
scene: &Scene,
sampler: &mut Sampler,
depth: i32
) -> Spectrum
Auto Trait Implementations
impl RefUnwindSafe for DirectLightingIntegrator
impl Send for DirectLightingIntegrator
impl Sync for DirectLightingIntegrator
impl Unpin for DirectLightingIntegrator
impl UnwindSafe for DirectLightingIntegrator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more