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.86 by greg, Sat Jan 18 03:49:00 2025 UTC vs.
Revision 2.87 by greg, Fri Jun 20 03:43:17 2025 UTC

# Line 561 | Line 561 | srcscatter(                    /* compute source scattering into ray */
561          RAY  *r
562   )
563   {
564 <        int  oldsampndx;
564 >        unsigned long  oldsampndx;
565          int  nsamps;
566          RAY  sr;
567          SRCINDEX  si;
# Line 583 | Line 583 | srcscatter(                    /* compute source scattering into ray */
583                  nsamps = MAXSSAMP;
584   #endif
585          oldsampndx = samplendx;
586 <        samplendx = random()&0x7fff;            /* randomize */
586 >        samplendx = random()&0x7ffff;           /* randomize */
587          for (i = volumePhotonMapping ? 1 : r->slights[0]; i > 0; i--) {
588                  /* for each source OR once if volume photon map enabled */
589                  for (j = 0; j < nsamps; j++) {  /* for each sample position */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines