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.4 by greg, Thu Feb 25 10:04:22 1993 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines