diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-09-29 15:40:10 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-03 17:09:27 +0400 |
commit | 1620fa92478f67139b89f8c1e926a6223eaebe1f (patch) | |
tree | a8b6bd85c53ebc5e2c3b6c5806514f3dc8605694 /source | |
parent | 7493ddc81548d061f59034ae78c36ba10eda2e04 (diff) |
Fix T41993: Constant jittered bug
Rotated coordinate of the ray start was used when calculating
the ray direction, ending up with wrong direction.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/rayshade.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c index 7e56d93f23b..2dc593482ba 100644 --- a/source/blender/render/intern/source/rayshade.c +++ b/source/blender/render/intern/source/rayshade.c @@ -2371,9 +2371,9 @@ static void ray_shadow_jitter(ShadeInput *shi, LampRen *lar, const float lampco[ mul_m3_v3(lar->mat, vec); /* set start and vec */ - isec->dir[0] = vec[0]+lampco[0]-isec->start[0]; - isec->dir[1] = vec[1]+lampco[1]-isec->start[1]; - isec->dir[2] = vec[2]+lampco[2]-isec->start[2]; + isec->dir[0] = vec[0]+lampco[0]-shi->co[0]; + isec->dir[1] = vec[1]+lampco[1]-shi->co[1]; + isec->dir[2] = vec[2]+lampco[2]-shi->co[2]; RE_instance_rotate_ray_dir(shi->obi, isec); |