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

Comparing ray/src/rt/m_mirror.c (file contents):
Revision 2.2 by greg, Fri Nov 20 12:09:16 1992 UTC vs.
Revision 2.3 by greg, Wed Jan 12 16:46:41 1994 UTC

# Line 44 | Line 44 | register RAY  *r;
44          if (m->oargs.nsargs > 0 &&
45                          (r->rsrc < 0 || source[r->rsrc].so != r->ro)) {
46                  rayshade(r, modifier(m->oargs.sarg[0]));
47 <                return;
47 >                return(1);
48          }
49                                          /* check for bad source ray */
50          if (r->rsrc >= 0 && source[r->rsrc].so != r->ro)
51 <                return;
51 >                return(1);
52  
53          if (r->rod < 0.)                /* back is black */
54 <                return;
54 >                return(1);
55                                          /* get modifiers */
56          raytexture(r, m->omod);
57                                          /* assign material color */
# Line 72 | Line 72 | register RAY  *r;
72                  double  pdot;
73  
74                  if (rayorigin(&nr, r, REFLECTED, bright(mcolor)) < 0)
75 <                        return;
75 >                        return(1);
76                  pdot = raynormal(pnorm, r);     /* use textures */
77                  for (i = 0; i < 3; i++)
78                          nr.rdir[i] = r->rdir[i] + 2.*pdot*pnorm[i];
# Line 84 | Line 84 | register RAY  *r;
84          rayvalue(&nr);
85          multcolor(nr.rcol, mcolor);
86          addcolor(r->rcol, nr.rcol);
87 +        return(1);
88   }
89  
90  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines