Fix [#19602] Rayshadow that goes through transparent plane disappears
authorAndre Susano Pinto <andresusanopinto@gmail.com>
Tue, 13 Oct 2009 10:52:18 +0000 (10:52 +0000)
committerAndre Susano Pinto <andresusanopinto@gmail.com>
Tue, 13 Oct 2009 10:52:18 +0000 (10:52 +0000)
(some bugs may show on other places if some of the code isnt prepared to handle non-normalized is->vec)

source/blender/render/intern/raytrace/rayobject.cpp

index d8880b51c6c3ee0bd2a3a1857b29dcbab8a81f1b..8aff7a38317a3bdba906aa38a732481029b6e1f0 100644 (file)
@@ -376,7 +376,6 @@ int RE_rayobject_raycast(RayObject *r, Isect *isec)
        RE_RC_COUNT(isec->raycounter->raycast.test);
 
        /* Setup vars used on raycast */
-       isec->labda *= Normalize(isec->vec);
        isec->dist = VecLength(isec->vec);
        
        for(i=0; i<3; i++)