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.17 by greg, Thu Nov 2 17:37:58 1995 UTC vs.
Revision 2.18 by greg, Tue Nov 7 12:40:32 1995 UTC

# Line 131 | Line 131 | SRCINDEX  *si;                 /* source sample index */
131          sr->rsrc = si->sn;                      /* remember source */
132          srcp = source + si->sn;
133          if (srcp->sflags & SDISTANT) {
134 <                if (srcp->sflags & SSPOT && spotout(sr, srcp->sl.s, 1))
134 >                if (srcp->sflags & SSPOT && spotout(sr, srcp->sl.s))
135                          continue;
136                  return(1);              /* sample OK */
137          }
# Line 141 | Line 141 | SRCINDEX  *si;                 /* source sample index */
141                  continue;
142                                                  /* check angle */
143          if (srcp->sflags & SSPOT) {
144 <                if (spotout(sr, srcp->sl.s, 0))
144 >                if (spotout(sr, srcp->sl.s))
145                          continue;
146                                          /* adjust solid angle */
147                  si->dom *= d*d;
# Line 466 | Line 466 | register RAY  *r;
466          if (srcignore(m, r))
467                  return(1);
468                                                  /* check for outside spot */
469 <        if (m->otype==MAT_SPOT && spotout(r, makespot(m), r->rot>=FHUGE))
469 >        if (m->otype==MAT_SPOT && spotout(r, makespot(m)))
470                  return(1);
471                                                  /* get distribution pattern */
472          raytexture(r, m->omod);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines