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.5 by greg, Mon Oct 15 20:39:32 1990 UTC vs.
Revision 1.6 by greg, Tue May 7 17:45:51 1991 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines