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 2.11 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.12 by greg, Mon Mar 3 00:10:51 2003 UTC

# Line 66 | Line 66 | register RAY  *r;
66  
67          setcolor(mcolor, m->oargs.farg[0], m->oargs.farg[1], m->oargs.farg[2]);
68  
69 +                                                /* get modifiers */
70 +        raytexture(r, m->omod);
71          if (r->rod < 0.0)                       /* reorient if necessary */
72                  flipsurface(r);
73          mirtest = transtest = 0;
74          mirdist = transdist = r->rot;
75 <                                                /* get modifiers */
74 <        raytexture(r, m->omod);
75 >                                                /* perturb normal */
76          if (hastexture = DOT(r->pert,r->pert) > FTINY*FTINY)
77                  pdot = raynormal(pnorm, r);
78          else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines