From cc84bfee3c5ee515360589103c14569c7dc42653 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 21 May 2014 21:03:25 +0200 Subject: [PATCH] VPL time computation fix --- src/librender/vpl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/librender/vpl.cpp b/src/librender/vpl.cpp index e23dadd6..dcacee3e 100644 --- a/src/librender/vpl.cpp +++ b/src/librender/vpl.cpp @@ -29,8 +29,7 @@ static void appendVPL(const Scene *scene, Random *random, prunedVPLs.incrementBase(); const Sensor *sensor = scene->getSensor(); - Float time = sensor->getShutterOpen() - + sensor->getShutterOpenTime() * random->nextFloat(); + Float time = random->nextFloat(); if (prune) { /* Possibly reject VPLs if they are unlikely to be @@ -43,7 +42,7 @@ static void appendVPL(const Scene *scene, Random *random, Vector2i size = sensor->getFilm()->getCropSize(); for (int i=0; ineedsTimeSample()) - time = sensor->sampleTime(random->nextFloat()); + time = random->nextFloat(); sensor->sampleRay(ray, Point2(random->nextFloat() * size.x, random->nextFloat() * size.y), Point2(0.5f), time);