mitsuba/src/librender/phase.cpp

23 lines
638 B
C++
Raw Normal View History

#include <mitsuba/render/phase.h>
#include <mitsuba/render/medium.h>
MTS_NAMESPACE_BEGIN
std::string PhaseFunctionQueryRecord::toString() const {
std::ostringstream oss;
oss << "PhaseFunctionQueryRecord[" << std::endl
<< " mRec = " << indent(mRec.toString()) << "," << std::endl
<< " wi = " << wi.toString() << "," << std::endl
<< " wo = " << wo.toString() << "," << std::endl
<< " quantity = " << quantity << std::endl
<< "]";
return oss.str();
}
Float PhaseFunction::pdf(const PhaseFunctionQueryRecord &pRec) const {
2011-04-14 20:19:08 +08:00
return f(pRec);
}
MTS_IMPLEMENT_CLASS(PhaseFunction, true, ConfigurableObject)
MTS_NAMESPACE_END