Bugfix #5383
authorTon Roosendaal <ton@blender.org>
Sat, 9 Dec 2006 15:21:00 +0000 (15:21 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 9 Dec 2006 15:21:00 +0000 (15:21 +0000)
Raytraced transparent: silly error in commit of dec 5, forgot one multiply
in the code, which made transparency look very much different.

source/blender/render/intern/source/ray.c

index 13030eecfe460b32ca6f8bfc902066fdee59255d..41fa2dbbf16ad1986628d6fe44e6649d9d1ba067 100644 (file)
@@ -1867,9 +1867,9 @@ void ray_trace(ShadeInput *shi, ShadeResult *shr)
                /* for refract pass */
                VECCOPY(olddiff, diff);
                
-               diff[0]= f*diff[0] + fr*tracol[0];
-               diff[1]= f*diff[1] + fg*tracol[1];
-               diff[2]= f*diff[2] + fb*tracol[2];
+               diff[0]= f*diff[0] + f1*fr*tracol[0];
+               diff[1]= f*diff[1] + f1*fg*tracol[1];
+               diff[2]= f*diff[2] + f1*fb*tracol[2];
                
                if(shi->passflag & SCE_PASS_REFRACT)
                        VECSUB(shr->refr, diff, olddiff);