[][src]Trait pbrt::core::primitive::Primitive

pub trait Primitive {
    fn world_bound(&self) -> Bounds3f;
fn intersect(&self, ray: &mut Ray) -> Option<SurfaceInteraction>;
fn intersect_p(&self, r: &Ray) -> bool;
fn get_area_light(&self) -> Option<Arc<dyn AreaLight + Send + Sync>>;
fn get_material(&self) -> Option<Arc<dyn Material + Send + Sync>>; fn compute_scattering_functions(
        &self,
        isect: &mut SurfaceInteraction,
        mode: TransportMode,
        allow_multiple_lobes: bool
    ) { ... } }

Required Methods

Provided Methods

Implementors

impl Primitive for BVHAccel
[src]

impl Primitive for GeometricPrimitive
[src]

impl Primitive for TransformedPrimitive
[src]