#include <primitive.h>
Public Member Functions | |
Intersection () | |
BSDF * | GetBSDF (const RayDifferential &ray, float u) const |
SWCSpectrum | Le (const Vector &wo) const |
SWCSpectrum | Le (const Ray &ray, const Normal &n, BSDF **bsdf, float *pdf, float *pdfDirect) const |
Public Attributes | |
DifferentialGeometry | dg |
Transform | WorldToObject |
const Primitive * | primitive |
Definition at line 51 of file primitive.h.
lux::Intersection::Intersection | ( | ) | [inline] |
Definition at line 54 of file primitive.h.
References primitive.
BSDF * Intersection::GetBSDF | ( | const RayDifferential & | ray, | |
float | u | |||
) | const |
Definition at line 165 of file primitive.cpp.
References lux::DifferentialGeometry::ComputeDifferentials(), dg, lux::Primitive::GetBSDF(), primitive, and WorldToObject.
Referenced by generateLightPath(), lux::BidirIntegrator::generatePath(), lux::IrradianceCache::IndirectLo(), lux::WhittedIntegrator::Li(), lux::PhotonIntegrator::Li(), lux::Path2Integrator::Li(), lux::PathIntegrator::Li(), lux::ParticleTracingIntegrator::Li(), lux::MLTPathIntegrator::Li(), lux::IrradianceCache::Li(), lux::IGIIntegrator::Li(), lux::DebugIntegrator::Li(), lux::ExPhotonIntegrator::LiInternal(), lux::DirectLighting::LiInternal(), lux::PhotonIntegrator::Preprocess(), lux::ExPhotonIntegrator::Preprocess(), and lux::VisibilityTester::TestOcclusion().
SWCSpectrum Intersection::Le | ( | const Ray & | ray, | |
const Normal & | n, | |||
BSDF ** | bsdf, | |||
float * | pdf, | |||
float * | pdfDirect | |||
) | const |
Definition at line 176 of file primitive.cpp.
References dg, lux::BSDF::f(), lux::Primitive::GetAreaLight(), lux::AreaLight::L(), and primitive.
SWCSpectrum Intersection::Le | ( | const Vector & | wo | ) | const |
Definition at line 172 of file primitive.cpp.
References dg, lux::Primitive::GetAreaLight(), lux::AreaLight::L(), lux::DifferentialGeometry::nn, lux::DifferentialGeometry::p, and primitive.
Referenced by lux::EstimateDirect(), lux::BidirIntegrator::generatePath(), lux::IrradianceCache::IndirectLo(), lux::WhittedIntegrator::Li(), lux::PhotonIntegrator::Li(), lux::Path2Integrator::Li(), lux::PathIntegrator::Li(), lux::MLTPathIntegrator::Li(), lux::IrradianceCache::Li(), lux::IGIIntegrator::Li(), lux::ExPhotonIntegrator::LiInternal(), and lux::DirectLighting::LiInternal().
Definition at line 60 of file primitive.h.
Referenced by generateLightPath(), lux::BidirIntegrator::generatePath(), GetBSDF(), lux::ShapeSet::Intersect(), lux::GeometricPrimitive::Intersect(), lux::InstancePrimitive::Intersect(), lux::PerspectiveCamera::Intersect(), lux::PerspectiveCamera::IsVisibleFromEyes(), Le(), lux::WhittedIntegrator::Li(), lux::PhotonIntegrator::Li(), lux::ParticleTracingIntegrator::Li(), lux::IrradianceCache::Li(), lux::IGIIntegrator::Li(), lux::DebugIntegrator::Li(), lux::ExPhotonIntegrator::LiInternal(), lux::DirectLighting::LiInternal(), lux::PhotonIntegrator::LPhoton(), lux::ExPhotonIntegrator::LPhoton(), lux::PhotonIntegrator::Preprocess(), and lux::ExPhotonIntegrator::Preprocess().
Definition at line 62 of file primitive.h.
Referenced by lux::EstimateDirect(), GetBSDF(), lux::GeometricPrimitive::Intersect(), lux::PerspectiveCamera::Intersect(), Intersection(), and Le().
Definition at line 61 of file primitive.h.
Referenced by GetBSDF(), lux::GeometricPrimitive::Intersect(), lux::InstancePrimitive::Intersect(), and lux::PerspectiveCamera::Intersect().