Photon Engine 2.0.0-beta
A physically based renderer.
|
A unified interface for accessing cooked content in a visual world. More...
#include <Scene.h>
Public Member Functions | |
Scene () | |
Scene (const Intersector *intersector, const EmitterSampler *emitterSampler) | |
bool | isOccluding (const Ray &ray) const |
bool | isIntersecting (const Ray &ray, HitProbe *out_probe) const |
const Emitter * | pickEmitter (SampleFlow &sampleFlow, real *out_PDF) const |
void | genDirectSample (DirectEnergySampleQuery &query, SampleFlow &sampleFlow, HitProbe &probe) const |
Sample direct lighting for a target position. | |
void | calcDirectPdf (DirectEnergyPdfQuery &query) const |
Calculate the PDF of direct lighting for a target position. | |
void | emitRay (EnergyEmissionSampleQuery &query, SampleFlow &sampleFlow, HitProbe &probe) const |
Emit a ray that carries some amount of energy from an emitter. | |
void | setBackgroundPrimitive (const Primitive *const primitive) |
A unified interface for accessing cooked content in a visual world.
ph::Scene::Scene | ( | ) |
ph::Scene::Scene | ( | const Intersector * | intersector, |
const EmitterSampler * | emitterSampler ) |
void ph::Scene::calcDirectPdf | ( | DirectEnergyPdfQuery & | query | ) | const |
Calculate the PDF of direct lighting for a target position.
void ph::Scene::emitRay | ( | EnergyEmissionSampleQuery & | query, |
SampleFlow & | sampleFlow, | ||
HitProbe & | probe ) const |
Emit a ray that carries some amount of energy from an emitter.
EnergyEmissionSampleOutput::getEmittedRay()
and probe
). void ph::Scene::genDirectSample | ( | DirectEnergySampleQuery & | query, |
SampleFlow & | sampleFlow, | ||
HitProbe & | probe ) const |
Sample direct lighting for a target position.
DirectEnergySampleOutput::getObservationRay()
and probe
). bool ph::Scene::isOccluding | ( | const Ray & | ray | ) | const |
const Emitter * ph::Scene::pickEmitter | ( | SampleFlow & | sampleFlow, |
real * | out_PDF ) const |
|
inline |