* Tweak to fix:

[#8358] Performance regression with raytraced refraction

Now shadows are only sampled once in reflections/refractions. For cases where this would be a problem (perfect specular reflection/refraction), the full OSA takes care of it.
This commit is contained in:
Matt Ebb 2009-09-23 00:53:30 +00:00
parent 930542540a
commit 7b1e5f4d8e

@ -1900,7 +1900,8 @@ static void ray_shadow_qmc(ShadeInput *shi, LampRen *lar, float *lampco, float *
else max_samples = 1; else max_samples = 1;
} else { } else {
if (do_soft) max_samples = lar->ray_totsamp; if (do_soft) max_samples = lar->ray_totsamp;
else max_samples = (R.osa > 4)?R.osa:5; else if (shi->depth == 0) max_samples = (R.osa > 4)?R.osa:5;
else max_samples = 1;
} }
ray_shadow_jittered_coords(shi, max_samples, jitco, &totjitco); ray_shadow_jittered_coords(shi, max_samples, jitco, &totjitco);