Attempts to fix CUDA issues on sm 2.0 cards, still no luck getting motion blur

working, but this should make it not crash.

Also fix for wrong shutter time, should have been shorter.
This commit is contained in:
Brecht Van Lommel
2012-10-17 22:48:29 +00:00
parent 431caff869
commit 6915394a3b
8 changed files with 78 additions and 66 deletions

View File

@@ -217,7 +217,7 @@ __device void camera_sample(KernelGlobals *kg, int x, int y, float filter_u, flo
if(kernel_data.cam.shuttertime == 0.0f)
ray->time = TIME_INVALID;
else
ray->time = 0.5f + (time - 0.5f)*kernel_data.cam.shuttertime;
ray->time = 0.5f + 0.5f*(time - 0.5f)*kernel_data.cam.shuttertime;
#endif
/* sample */