diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-10-07 19:01:44 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-10-07 19:01:44 +0400 |
commit | 94a9fa4711be6411002bdd32ffbb01c7402f4920 (patch) | |
tree | 22c8efaa75886c840044ad1c58b0450c6d29a44c /source/blender/render/intern/source/zbuf.c | |
parent | 0d7d520ffa3cf52829f765687766db694b92f2b1 (diff) |
Fix for bug #13363: ray (qmc) shadows had some light leaking issues,
due to jittering of the start position for antialiasing in a pixel.
Now it distributes the start position over the fixed osa sample
positions, instead of of random positions in space. The ugly bit is
that a custom ordering was defined for osa 8/11/16 to ensure that the
first 4 are distributed relatively fair for adaptive sampling to decide
if more samples need to be taken.
Diffstat (limited to 'source/blender/render/intern/source/zbuf.c')
-rw-r--r-- | source/blender/render/intern/source/zbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/zbuf.c b/source/blender/render/intern/source/zbuf.c index 1726c061df1..0ddcf78b8f0 100644 --- a/source/blender/render/intern/source/zbuf.c +++ b/source/blender/render/intern/source/zbuf.c @@ -3839,7 +3839,7 @@ static void shade_tra_samples_fill(ShadeSample *ssamp, int x, int y, int z, int } shi->mask= (1<<samp); shi->samplenr= R.shadowsamplenr[shi->thread]++; - shade_input_set_viewco(shi, xs, ys, (float)z); + shade_input_set_viewco(shi, x, y, xs, ys, (float)z); shade_input_set_uv(shi); shade_input_set_normals(shi); @@ -3859,7 +3859,7 @@ static void shade_tra_samples_fill(ShadeSample *ssamp, int x, int y, int z, int } shi->mask= curmask; shi->samplenr= R.shadowsamplenr[shi->thread]++; - shade_input_set_viewco(shi, xs, ys, (float)z); + shade_input_set_viewco(shi, x, y, xs, ys, (float)z); shade_input_set_uv(shi); shade_input_set_normals(shi); } |