19 #include <nori/bsdf.h>
20 #include <nori/frame.h>
29 m_intIOR = propList.
getFloat(
"intIOR", 1.5046f);
32 m_extIOR = propList.
getFloat(
"extIOR", 1.000277f);
49 virtual std::string
toString()
const override {
58 float m_intIOR, m_extIOR;
Superclass of all bidirectional scattering distribution functions.
virtual float pdf(const BSDFQueryRecord &) const override
Compute the probability of sampling bRec.wo (conditioned on bRec.wi).
virtual Color3f eval(const BSDFQueryRecord &) const override
Evaluate the BSDF for a pair of directions and measure specified in code bRec.
virtual Color3f sample(BSDFQueryRecord &bRec, const Point2f &sample) const override
Sample the BSDF and return the importance weight (i.e. the value of the BSDF * cos(theta_o) divided b...
virtual std::string toString() const override
Return a brief string summary of the instance (for debugging purposes)
Simple exception class, which stores a human-readable error description.
This is an associative container used to supply the constructors of NoriObject subclasses with parame...
float getFloat(const std::string &name) const
Get a float property, and throw an exception if it does not exist.
Convenience data structure used to pass multiple parameters to the evaluation and sampling routines i...
Represents a linear RGB color value.