EmitterRecord struct

Data record for conveniently querying and sampling emitters.

Constructors, destructors, conversion operators

EmitterRecord() defaulted
Default constructor that leaves all members uninitialized.
EmitterRecord(const Vec3f o)
Initialize just the origin point.

Public variables

Vec3f o
Origin point from which we sample the emitter.
Vec3f wi
Direction vector from 'o' to 'hit.p'.
float pdf
Solid angle density wrt. 'o'.
HitInfo hit
Hit information at the sampled point.