Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
#include <bpt.subpath.h>
Public Member Functions | |
LM_PUBLIC_API | BPTSubpath (TransportDirection transportDir) |
LM_PUBLIC_API void | Clear () |
LM_PUBLIC_API void | DebugPrint () const |
LM_PUBLIC_API void | DebugPrint (size_t n) const |
LM_PUBLIC_API void | Sample (const Scene &scene, Sampler &sampler, BPTPathVertexPool &pool, int rrDepth, int maxPathVertices) |
Math::Vec3 | EvaluateSubpathAlpha (int vs, Math::Vec2 &rasterPosition) const |
Math::Float | SubpathSelectionProbability (int vs) const |
LM_PUBLIC_API int | NumVertices () const |
LM_PUBLIC_API BPTPathVertex * | Vertex (int i) const |
Public Attributes | |
TransportDirection | transportDir |
std::vector< BPTPathVertex * > | vertices |
BPT sub-path. Represents a light sub-path or eye sub-path.
void BPTSubpath::Clear | ( | ) |
Clear. Clears sampled sub-path.
void BPTSubpath::DebugPrint | ( | ) | const |
Debug print. Prints contents of the sub-path.
void BPTSubpath::DebugPrint | ( | size_t | n | ) | const |
Debug print (by # of vertices). Print #n vertices.
n | Number of vertices. |
Math::Vec3 BPTSubpath::EvaluateSubpathAlpha | ( | int | vs, |
Math::Vec2 & | rasterPosition | ||
) | const |
Evaluate alpha of subpaths. The function is called from #EvaluateUnweightContribution.
vs | Number of vertices in subpath (#s or #t). |
rasterPosition | Raster position. |
int BPTSubpath::NumVertices | ( | ) | const |
Get number of vertices. This function is used for testing.
void BPTSubpath::Sample | ( | const Scene & | scene, |
Sampler & | sampler, | ||
BPTPathVertexPool & | pool, | ||
int | rrDepth, | ||
int | maxPathVertices | ||
) |
Math::Float BPTSubpath::SubpathSelectionProbability | ( | int | vs | ) | const |
Evalaute subpath selection pribability.
vs | Number of vertices in subpath (#s or #t). |
BPTPathVertex * BPTSubpath::Vertex | ( | int | i | ) | const |
Get i-th vertex. This function is used for testing.
i | Index. |