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 1.37 by greg, Tue Jun 25 12:32:51 1991 UTC vs.
Revision 1.39 by greg, Thu Jul 11 16:39:03 1991 UTC

# Line 86 | Line 86 | marksources()                  /* find and mark source objects */
86                          source[ns].sflags |= SSPOT;
87                          if ((source[ns].sl.s = makespot(m)) == NULL)
88                                  goto memerr;
89 +                        if (source[ns].sflags & SFLAT &&
90 +                                !checkspot(source[ns].sl.s,source[ns].snorm)) {
91 +                                objerror(o, WARNING,
92 +                                        "invalid spotlight direction");
93 +                                source[ns].sflags |= SSKIP;
94 +                        }
95                  }
96          }
97          if (nsources <= 0) {
# Line 146 | Line 152 | register int  sn;              /* source number */
152                  for (i = 0; i < 3; i++) {
153                          dimlist[ndims] = i + 8831;
154                          vd[i] = dstrsrc * source[sn].ss *
155 <                (1.0 - 2.0*urand(ilhash(dimlist,ndims+1)+samplendx));
155 >                (1.0 - 2.0*urand(urind(ilhash(dimlist,ndims+1),samplendx)));
156                  }
157                  ndims--;
158                  if (source[sn].sflags & SFLAT) {        /* project offset */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines