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.2 by greg, Fri Oct 2 16:17:04 1992 UTC vs.
Revision 2.5 by greg, Mon Mar 8 12:37:15 1993 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines