src/librender/sensor.cpp, pdfTime(), check of validity of ray.time (#12)

metadata
Lin Hsu 2017-09-06 20:46:17 +08:00 committed by Wenzel Jakob
parent 04eb2d506e
commit 77d0885f85
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ Spectrum Sensor::sampleRayDifferential(RayDifferential &ray,
}
Float Sensor::pdfTime(const Ray &ray, EMeasure measure) const {
if (ray.time < m_shutterOpen || ray.time > m_shutterOpenTime + m_shutterOpenTime)
if (ray.time < m_shutterOpen || ray.time > m_shutterOpen + m_shutterOpenTime)
return 0.0f;
if (m_shutterOpenTime == 0 && measure == EDiscrete)