[Bf-blender-cvs] [1620fa9] blender-v2.72-release: Fix T41993: Constant jittered bug

Sergey Sharybin noreply at git.blender.org
Fri Oct 3 15:24:31 CEST 2014


Commit: 1620fa92478f67139b89f8c1e926a6223eaebe1f
Author: Sergey Sharybin
Date:   Mon Sep 29 17:40:10 2014 +0600
Branches: blender-v2.72-release
https://developer.blender.org/rB1620fa92478f67139b89f8c1e926a6223eaebe1f

Fix T41993: Constant jittered bug

Rotated coordinate of the ray start was used when calculating
the ray direction, ending up with wrong direction.

===================================================================

M	source/blender/render/intern/source/rayshade.c

===================================================================

diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c
index 7e56d93..2dc5934 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);




More information about the Bf-blender-cvs mailing list