Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::ESPowerFavoring Class Reference

#include <ESPowerFavoring.h>

Inheritance diagram for ph::ESPowerFavoring:
ph::EmitterSampler

Public Member Functions

void update (TSpanView< const Emitter * > emitters) override
 
const EmitterpickEmitter (SampleFlow &sampleFlow, real *out_PDF) const override
 
void genDirectSample (DirectEnergySampleQuery &query, SampleFlow &sampleFlow, HitProbe &probe) const override
 Sample direct lighting for a target position.
 
void calcDirectPdf (DirectEnergyPdfQuery &query) const override
 Calculate the PDF of direct lighting for a target position.
 
- Public Member Functions inherited from ph::EmitterSampler
virtual ~EmitterSampler ()
 

Member Function Documentation

◆ calcDirectPdf()

void ph::ESPowerFavoring::calcDirectPdf ( DirectEnergyPdfQuery & query) const
overridevirtual

Calculate the PDF of direct lighting for a target position.

Implements ph::EmitterSampler.

◆ genDirectSample()

void ph::ESPowerFavoring::genDirectSample ( DirectEnergySampleQuery & query,
SampleFlow & sampleFlow,
HitProbe & probe ) const
overridevirtual

Sample direct lighting for a target position.

Note
Generates hit event (with DirectEnergySampleOutput::getObservationRay() and probe).

Implements ph::EmitterSampler.

◆ pickEmitter()

const Emitter * ph::ESPowerFavoring::pickEmitter ( SampleFlow & sampleFlow,
real * out_PDF ) const
overridevirtual

Implements ph::EmitterSampler.

◆ update()

void ph::ESPowerFavoring::update ( TSpanView< const Emitter * > emitters)
overridevirtual

Implements ph::EmitterSampler.


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