Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-09-29 15:40:10 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-09-29 15:41:07 +0400
commit52330e5349a9c3ad111beb85211bf8db533cb007 (patch)
tree739c31f09b1d9e753f7c8a1c6b3973be12098d97 /source/blender
parenta0b7d24a6f913931a4743a48b3bfa680f3506cdb (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/blender')
-rw-r--r--source/blender/render/intern/source/rayshade.c6
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 05e83f35179..ff1f502cc1a 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);