19 #include <nori/bsdf.h>
20 #include <nori/frame.h>
57 virtual std::string
toString()
const override {
62 NORI_REGISTER_CLASS(
Mirror,
"mirror");
Superclass of all bidirectional scattering distribution functions.
virtual Color3f eval(const BSDFQueryRecord &) const override
Evaluate the BSDF for a pair of directions and measure specified in code bRec.
virtual float pdf(const BSDFQueryRecord &) const override
Compute the probability of sampling bRec.wo (conditioned on bRec.wi).
virtual std::string toString() const override
Return a brief string summary of the instance (for debugging purposes)
virtual Color3f sample(BSDFQueryRecord &bRec, const Point2f &) const override
Sample the BSDF and return the importance weight (i.e. the value of the BSDF * cos(theta_o) divided b...
This is an associative container used to supply the constructors of NoriObject subclasses with parame...
Convenience data structure used to pass multiple parameters to the evaluation and sampling routines i...
Vector3f wo
Outgoing direction (in the local frame)
Vector3f wi
Incident direction (in the local frame)
EMeasure measure
Measure associated with the sample.
float eta
Relative refractive index in the sampled direction.
Represents a linear RGB color value.
static float cosTheta(const Vector3f &v)
Assuming that the given direction is in the local coordinate system, return the cosine of the angle b...