ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/raytrace.c
(Generate patch)

Comparing ray/src/rt/raytrace.c (file contents):
Revision 2.31 by gwlarson, Wed Jun 17 12:53:06 1998 UTC vs.
Revision 2.32 by gwlarson, Thu Aug 6 10:30:38 1998 UTC

# Line 277 | Line 277 | double  coef;
277                  backmat = rayshade(&br, back);
278                                          /* check for transparency */
279          if (backmat ^ foremat)
280 <                if (backmat && coef > FTINY)
280 >                if (!foremat && coef > FTINY)
281                          raytrans(&fr);
282 <                else if (foremat && coef < 1.0-FTINY)
282 >                else if (!backmat && coef < 1.0-FTINY)
283                          raytrans(&br);
284                                          /* mix perturbations */
285          for (i = 0; i < 3; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines