pub struct SampleOutgoingResponse {
pub omega_o: Vec3d,
pub bsdf: RgbD,
pub adjoint_bsdf: RgbD,
pub pdf: f64,
}
Expand description
Contains the Data that is returned by BSDF::sample_outgoing
Fields§
§omega_o: Vec3d
The direction to which light is scattered to
bsdf: RgbD
The value of the BSDF at the given direction. Indicates how much light is scattered from the incoming direction to the outgoing direction
adjoint_bsdf: RgbD
The value of the adjoint BSDF at the given direction. Indicates how much light is scattered from the incoming direction to the outgoing direction
pdf: f64
The probability distribution for choosing omega_o
given omega_i
Auto Trait Implementations§
impl Freeze for SampleOutgoingResponse
impl RefUnwindSafe for SampleOutgoingResponse
impl Send for SampleOutgoingResponse
impl Sync for SampleOutgoingResponse
impl Unpin for SampleOutgoingResponse
impl UnwindSafe for SampleOutgoingResponse
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