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.4 by greg, Wed Jul 26 16:53:25 1995 UTC

# Line 43 | Line 43 | register RAY  *r;
43                                          /* check for substitute material */
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;
46 >                if (!strcmp(m->oargs.sarg[0], VOIDID)) {
47 >                        raytrans(r);
48 >                        return(1);
49 >                }
50 >                return(rayshade(r, modifier(m->oargs.sarg[0])));
51          }
52                                          /* check for bad source ray */
53          if (r->rsrc >= 0 && source[r->rsrc].so != r->ro)
54 <                return;
54 >                return(1);
55  
56          if (r->rod < 0.)                /* back is black */
57 <                return;
57 >                return(1);
58                                          /* get modifiers */
59          raytexture(r, m->omod);
60                                          /* assign material color */
# Line 72 | Line 75 | register RAY  *r;
75                  double  pdot;
76  
77                  if (rayorigin(&nr, r, REFLECTED, bright(mcolor)) < 0)
78 <                        return;
78 >                        return(1);
79                  pdot = raynormal(pnorm, r);     /* use textures */
80                  for (i = 0; i < 3; i++)
81                          nr.rdir[i] = r->rdir[i] + 2.*pdot*pnorm[i];
# Line 84 | Line 87 | register RAY  *r;
87          rayvalue(&nr);
88          multcolor(nr.rcol, mcolor);
89          addcolor(r->rcol, nr.rcol);
90 +        return(1);
91   }
92  
93  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines