10#include <Common/assertion.h>
76 operator bool ()
const;
83 Ray m_observationRay{};
130 m_emittedEnergy = emittedEnergy;
140 m_srcPrimitive = srcPrimitive;
145 m_observationRay = observationRay;
157 return m_emittedEnergy;
175 PH_ASSERT(m_srcPrimitive);
176 return *m_srcPrimitive;
182 return m_observationRay;
185inline DirectEnergySampleOutput::operator bool ()
const
Output for DirectEnergySampleQuery.
Definition DirectEnergySampleQuery.h:44
void setPdf(const lta::PDF &pdf)
Definition DirectEnergySampleQuery.h:133
void setSrcPrimitive(const Primitive *srcPrimitive)
Definition DirectEnergySampleQuery.h:138
const math::Spectrum & getEmittedEnergy() const
The sampled emitted energy of. Does not contain any path weighting.
Definition DirectEnergySampleQuery.h:154
const Ray & getObservationRay() const
Get the ray from target position to sampled emitting position. If target position or emitting positio...
Definition DirectEnergySampleQuery.h:179
void setEmittedEnergy(const math::Spectrum &emittedEnergy)
Definition DirectEnergySampleQuery.h:128
void setObservationRay(const Ray &observationRay)
Definition DirectEnergySampleQuery.h:143
void setEmitPos(const math::Vector3R &emitPos)
Definition DirectEnergySampleQuery.h:123
const math::Vector3R & getEmitPos() const
Definition DirectEnergySampleQuery.h:148
const Primitive & getSrcPrimitive() const
Definition DirectEnergySampleQuery.h:172
real getPdfW() const
Definition DirectEnergySampleQuery.h:160
const lta::PDF & getPdf() const
Definition DirectEnergySampleQuery.h:166
Information for generating a sample for direct energy estimation.
Definition DirectEnergySampleQuery.h:89
math::Vector3R getTargetToEmit() const
Definition DirectEnergySampleQuery.h:190
Output outputs
Definition DirectEnergySampleQuery.h:95
math::Vector3R getEmitToTarget() const
Definition DirectEnergySampleQuery.h:195
DirectEnergySampleQuery()=default
Input inputs
Definition DirectEnergySampleQuery.h:94
A physical shape in the scene.
Definition Primitive.h:23
Represents a ray in space.
Definition Ray.h:21
General information about a ray-surface intersection event.
Definition SurfaceHit.h:59
math::Vector3R getPos() const
Definition SurfaceHit.h:186
A sample from a Probability Density Function (PDF).
Definition PDF.h:14
real getPdfW() const
Definition PDF.h:87
Definition TTristimulusSpectrum.h:11
The root for all renderer implementations.
Definition EEngineProject.h:6