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

Comparing ray/src/gen/mkillum2.c (file contents):
Revision 2.42 by greg, Fri Sep 16 15:08:38 2016 UTC vs.
Revision 2.43 by greg, Fri Nov 17 20:02:07 2023 UTC

# Line 59 | Line 59 | process_ray(                   /* process a ray result or report error
59                  error(USER, "ray tracing process died");
60          if (r->rno >= distsiz)
61                  error(INTERNAL, "bad returned index in process_ray");
62 <        multcolor(r->rcol, r->rcoef);   /* in case it's a source ray */
62 >        smultscolor(r->rcol, r->rcoef); /* in case it's a source ray */
63          colp = &distarr[r->rno * 3];
64 <        addcolor(colp, r->rcol);
64 >        addscolor(colp, r->rcol);
65          return(1);
66   }
67  
# Line 125 | Line 125 | srcsamps(                      /* sample sources from this surface positi
125                  sr.rno = flatindex(v, nalt, nazi);
126                  d = nalt*nazi*(1./PI) * v[2];
127                  d *= si.dom;                    /* solid angle correction */
128 <                scalecolor(sr.rcoef, d);
128 >                scalescolor(sr.rcoef, d);
129                  VSUM(sr.rorg, sr.rorg, sr.rdir, -eps);
130                  process_ray(&sr, ray_pqueue(&sr));
131          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines