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

Comparing ray/src/rt/dielectric.c (file contents):
Revision 2.3 by greg, Thu Nov 19 20:30:02 1992 UTC vs.
Revision 2.6 by greg, Thu Nov 18 09:43:00 1993 UTC

# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ LBL";
16  
17   #ifdef  DISPERSE
18   #include  "source.h"
19 + static  disperse();
20 + static int  lambda();
21   #endif
22  
23   /*
# Line 65 | Line 67 | register RAY  *r;
67          if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8))
68                  objerror(m, USER, "bad arguments");
69  
68        r->rt = r->rot;                         /* just use ray length */
69
70          raytexture(r, m->omod);                 /* get modifiers */
71  
72          cos1 = raynormal(dnorm, r);             /* cosine of theta1 */
# Line 137 | Line 137 | register RAY  *r;
137                                  multcolor(mcolor, r->pcol);     /* modify */
138                                  scalecolor(p.rcol, trans);
139                                  addcolor(r->rcol, p.rcol);
140 +                                if (nratio >= 1.0-FTINY && nratio <= 1.0+FTINY)
141 +                                        r->rt = r->rot + p.rt;
142                          }
143                  }
144          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines