pub struct RtLightSample { /* private fields */ }Expand description
Evaluated direct lighting sample returned by RtLight::sample_light.
Implementations§
Source§impl RtLightSample
Implements impl #impl_generics #name #ty_generics #where_clause.
impl RtLightSample
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_direction(&self) -> Vec3
pub fn get_mut_direction(&mut self) -> &mut Vec3
pub fn set_direction(&mut self, val: Vec3) -> &mut Self
pub fn get_distance(&self) -> f32
pub fn get_mut_distance(&mut self) -> &mut f32
pub fn set_distance(&mut self, val: f32) -> &mut Self
pub fn get_radiance(&self) -> Vec3
pub fn get_mut_radiance(&mut self) -> &mut Vec3
pub fn set_radiance(&mut self, val: Vec3) -> &mut Self
pub fn get_pdf(&self) -> f32
pub fn get_mut_pdf(&mut self) -> &mut f32
pub fn set_pdf(&mut self, val: f32) -> &mut Self
pub fn get_is_delta(&self) -> bool
pub fn get_mut_is_delta(&mut self) -> &mut bool
pub fn set_is_delta(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for RtLightSample
impl Clone for RtLightSample
impl Copy for RtLightSample
Source§impl Debug for RtLightSample
impl Debug for RtLightSample
Source§impl PartialEq for RtLightSample
impl PartialEq for RtLightSample
impl StructuralPartialEq for RtLightSample
Auto Trait Implementations§
impl Forget for RtLightSample
impl Freeze for RtLightSample
impl Move for RtLightSample
impl RefUnwindSafe for RtLightSample
impl Send for RtLightSample
impl Sync for RtLightSample
impl Unpin for RtLightSample
impl UnsafeUnpin for RtLightSample
impl UnwindSafe for RtLightSample
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