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 1.1 by greg, Thu Feb 2 10:41:21 1989 UTC vs.
Revision 1.5 by greg, Mon Oct 15 20:39:30 1990 UTC

# Line 66 | Line 66 | register RAY  *r;
66          if (m->oargs.nfargs != (m->otype==MAT_DIELECTRIC ? 5 : 8))
67                  objerror(m, USER, "bad arguments");
68  
69 +        r->rt = r->rot;                         /* just use ray length */
70 +
71          raytexture(r, m->omod);                 /* get modifiers */
72  
73          cos1 = raynormal(dnorm, r);             /* cosine of theta1 */
# Line 92 | Line 94 | register RAY  *r;
94                  else
95                          setcolor(mcolor, 1.0, 1.0, 1.0);
96          }
97 <        mabsorp = intens(mcolor);
97 >        mabsorp = bright(mcolor);
98  
99          d2 = 1.0 - nratio*nratio*(1.0 - cos1*cos1);     /* compute cos theta2 */
100  
# Line 253 | Line 255 | double  tr;
255                                                  /* trace source ray */
256                  normalize(sray.rdir);
257                  rayvalue(&sray);
258 <                if (intens(sray.rcol) <= FTINY) /* missed it */
258 >                if (bright(sray.rcol) <= FTINY) /* missed it */
259                          continue;
260                  
261                  /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines