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

Comparing ray/src/rt/glass.c (file contents):
Revision 1.9 by greg, Thu Jun 13 13:58:20 1991 UTC vs.
Revision 1.10 by greg, Mon Aug 12 08:20:57 1991 UTC

# Line 83 | Line 83 | register RAY  *r;
83          }
84                                                  /* transmitted ray */
85          if (rayorigin(&p, r, TRANS, bright(trans)) == 0) {
86 <                if (DOT(r->pert,r->pert) > FTINY*FTINY) {
86 >                if (!(r->crtype & SHADOW) &&
87 >                                DOT(r->pert,r->pert) > FTINY*FTINY) {
88                          for (i = 0; i < 3; i++)         /* perturb direction */
89                                  p.rdir[i] = r->rdir[i] - r->pert[i]/RINDEX;
90                          normalize(p.rdir);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines