Photon Engine 2.0.0-beta
A physically based renderer.
|
Process and control a view path tracing process. Derived classes need to implement all methods with "impl_" prefixed names and with the exact signature. More...
#include <TViewPathHandler.h>
Public Types | |
using | ViewPathHandlerTag = void |
Public Member Functions | |
bool | onReceiverSampleStart (const math::Vector2D &rasterCoord, const math::Vector2S &sampleIndex, const math::Spectrum &pathThroughput) |
Called after a receiver sample is generated. | |
auto | onPathHitSurface (std::size_t pathLength, const SurfaceHit &surfaceHit, const math::Spectrum &pathThroughput) -> ViewPathTracingPolicy |
Called after the view path hits a surface, with corresponding hit information given. | |
void | onReceiverSampleEnd () |
Called after a receiver sample has ended. | |
void | onSampleBatchFinished () |
Called after a batch of receiver samples has been consumed. Sample batch is as defined by the sample generator used. | |
Protected Member Functions | |
PH_DEFINE_INLINE_RULE_OF_5_MEMBERS (TViewPathHandler) | |
Process and control a view path tracing process. Derived classes need to implement all methods with "impl_" prefixed names and with the exact signature.
using ph::TViewPathHandler< Derived >::ViewPathHandlerTag = void |
auto ph::TViewPathHandler< Derived >::onPathHitSurface | ( | std::size_t | pathLength, |
const SurfaceHit & | surfaceHit, | ||
const math::Spectrum & | pathThroughput ) -> ViewPathTracingPolicy |
Called after the view path hits a surface, with corresponding hit information given.
void ph::TViewPathHandler< Derived >::onReceiverSampleEnd | ( | ) |
Called after a receiver sample has ended.
bool ph::TViewPathHandler< Derived >::onReceiverSampleStart | ( | const math::Vector2D & | rasterCoord, |
const math::Vector2S & | sampleIndex, | ||
const math::Spectrum & | pathThroughput ) |
Called after a receiver sample is generated.
void ph::TViewPathHandler< Derived >::onSampleBatchFinished | ( | ) |
Called after a batch of receiver samples has been consumed. Sample batch is as defined by the sample generator used.
|
protected |