diff --git a/DeviceCopyableObjects.h b/DeviceCopyableObjects.h index f9dc1932..7d96e6cf 100644 --- a/DeviceCopyableObjects.h +++ b/DeviceCopyableObjects.h @@ -636,7 +636,7 @@ inline hit_record> intersect(Ray ray, const Volume &vol if (majorant <= 0.f) break; - t -= (logf(1.f - rnd()) / majorant) * unitDistance; + t -= (logf(1.f - rnd()) / (majorant * unitDistance)); if (t >= t1) break;