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

Comparing ray/src/rt/source.c (file contents):
Revision 2.22 by greg, Sun Dec 17 11:51:49 1995 UTC vs.
Revision 2.24 by greg, Wed Apr 17 14:02:18 1996 UTC

# Line 337 | Line 337 | char  *p;                      /* data for f */
337                                  ( sr.ro != source[scp->sno].so ||
338                                  source[scp->sno].sflags & SFOLLOW )) {
339                                                  /* follow entire path */
340 <                        if (!raycont(&sr))
341 <                                objerror(sr.ro, USER, "material not found");
340 >                        raycont(&sr);
341                          rayparticipate(&sr);
342                          if (trace != NULL)
343                                  (*trace)(&sr);  /* trace execution */
# Line 414 | Line 413 | register RAY  *r;
413                                          sr.rsrc != r->slights[i])
414                                  continue;               /* no path */
415                          copycolor(sr.cext, r->cext);
416 <                        sr.albedo = r->albedo;
416 >                        copycolor(sr.albedo, r->albedo);
417                          sr.gecc = r->gecc;
418                          rayvalue(&sr);                  /* eval. source ray */
419                          if (bright(sr.rcol) <= FTINY)
# Line 434 | Line 433 | register RAY  *r;
433                                  d = (1. - r->gecc*r->gecc) / (d*d*d);
434                          }
435                                                          /* other factors */
436 <                        d *= si.dom * r->albedo * r->rot / (4.*PI*nsamps);
436 >                        d *= si.dom * r->rot / (4.*PI*nsamps);
437                          multcolor(sr.rcol, r->cext);
438 +                        multcolor(sr.rcol, r->albedo);
439                          scalecolor(sr.rcol, d);
440                          addcolor(cumval, sr.rcol);
441                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines