Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
BPTPathVertex Class Reference

#include <bpt.subpath.h>

Public Member Functions

bool Degenerated () const
 
void DebugPrint () const
 
- Public Member Functions inherited from SIMDAlignedType
void * operator new (std::size_t size) throw (std::bad_alloc)
 
void operator delete (void *p)
 

Public Attributes

BPTPathVertexType type
 Vertex type.
 
SurfaceGeometry geom
 Surface geometry information.
 
Math::PDFEval pdfP
 PDF evaluation for positional component.
 
const Emitteremitter
 Emitter. The entry is required because of area light or camera.
 
Math::Vec3 weight [2]
 Value of f_s / p_{^} for each transport direction.
 
Math::PDFEval pdfD [2]
 PDF evaluation for directional component for each transport direction.
 
Math::PDFEval pdfRR
 PDF evaluation for Russian roulette.
 
TransportDirection transportDir
 Transport direction.
 
int componentType
 Sampled component type.
 
const GeneralizedBSDFbsdf
 Generalized BSDF (note that BSDF and light or camera can point to different instances).
 
const LightareaL
 Light associated with surface.
 
const CameraareaE
 Camera associated with surface.
 
Math::Vec3 wi
 Incoming ray direction.
 
Math::Vec3 wo
 Outgoing ray direction.
 

Detailed Description

BPT path vertex. Represents a light path vertex. TODO : Use unrestricted unions in future implementation.

Inheritance diagram for BPTPathVertex:
SIMDAlignedType

Member Function Documentation

void BPTPathVertex::DebugPrint ( ) const

Debug print. Prints the summary of the path vertex.

bool BPTPathVertex::Degenerated ( ) const

Check if sampled BSDF component type is directionally degenerated. e.g. specular BSDFs or directional light

Return values
trueThe BSDF is directionally degenerated.
falseThe BSDF is not directionally degenerated.

The documentation for this class was generated from the following files: