src/librender/sensor.cpp, pdfTime(), check of validity of ray.time (#12)
parent
04eb2d506e
commit
77d0885f85
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue