mitsuba/src/librender/phase.cpp

39 lines
1.0 KiB
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-07-05 02:13:36 +08:00
return eval(pRec);
}
2011-04-14 21:15:59 +08:00
bool PhaseFunction::needsDirectionallyVaryingCoefficients() const {
return false;
}
Float PhaseFunction::sigmaDir(Float cosTheta) const {
Log(EError, "sigmaDir(): Not implemented! (this is not"
2011-04-14 21:15:59 +08:00
" an anisotropic medium)");
return 0.0f;
}
Float PhaseFunction::sigmaDirMax() const {
Log(EError, "sigmaDirMax(): Not implemented! (this is not"
" an anisotropic medium)");
return 0.0f;
}
MTS_IMPLEMENT_CLASS(PhaseFunction, true, ConfigurableObject)
MTS_NAMESPACE_END