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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user