Struct arendur::lighting::LightSample [] [src]

pub struct LightSample {
    pub radiance: RGBSpectrumf,
    pub pdf: Float,
    pub pfrom: Point3f,
    pub pto: Point3f,
}

Results of a light's sampling evaluation

Fields

outgoing radiance

pdf for this sample

outgoing point, parent frame

receiving point, parent frame

Methods

impl LightSample
[src]

get light direction vector wi

test if this light would be occulued by any components in Composable, assuming they are in the same world frame

Trait Implementations

impl Debug for LightSample
[src]

Formats the value using the given formatter.

impl PartialEq for LightSample
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Copy for LightSample
[src]

impl Clone for LightSample
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more