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.24 by greg, Thu May 29 16:42:28 2025 UTC vs.
Revision 2.25 by greg, Sat May 31 00:52:54 2025 UTC

# Line 36 | Line 36 | m_mirror(                      /* shade mirrored ray */
36          RAY  *r
37   )
38   {
39        SCOLOR  mcolor;
40        RAY  nr;
41        int  rpure = 1;
42        int  i;
39                                          /* check arguments */
40          if (m->oargs.nfargs != 3 || m->oargs.nsargs > 1)
41                  objerror(m, USER, "bad number of arguments");
# Line 73 | Line 69 | m_mirror(                      /* shade mirrored ray */
69                          raytrans(r);    /* unless back visibility is off */
70                  return(1);
71          }
72 +        {                               /* new context for stack memory */
73 +        SCOLOR  mcolor;
74 +        RAY  nr;
75 +        int  rpure = 1;
76 +        int  i;
77                                          /* get modifiers */
78          raytexture(r, m->omod);
79                                          /* assign material color */
# Line 114 | Line 115 | m_mirror(                      /* shade mirrored ray */
115          r->rmt = r->rot;
116          if (rpure && r->ro != NULL && isflat(r->ro->otype))
117                  r->rmt += raydistance(&nr);
118 +        }                               /* end stack context */
119          return(1);
120   }
121  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines