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.83 by greg, Sat Nov 9 15:21:32 2024 UTC vs.
Revision 2.84 by greg, Fri Nov 15 20:47:42 2024 UTC

# Line 200 | Line 200 | freesources(void)                      /* free all source structures */
200                  while (nsources--)
201                          freeobscache(&source[nsources]);
202   #endif
203 + #ifdef SSKIPOPT
204 +                sskip_rsi(NULL);
205 + #endif
206                  free(source);
207                  source = NULL;
208                  nsources = 0;
# Line 448 | Line 451 | direct(                                        /* add direct component */
451                  cntord[sn].brt = sintens(scp->coef);
452                  if (cntord[sn].brt <= 0.0)
453                          continue;
454 + #ifdef SSKIPOPT
455 +                if (ssf_select != NULL && sskip_chk(ssf_select, scp->sno))
456 +                        scalescolor(scp->coef, r->scorr);
457 + #endif
458                  VCOPY(scp->dir, sr.rdir);
459                  copyscolor(sr.rcoef, scp->coef);
460                                                  /* compute potential */
# Line 635 | Line 642 | srcscatter(                    /* compute source scattering into ray */
642                                  }
643                                                          /* other factors */
644                                  d *= si.dom * r->rot / (4.*PI*nsamps);
645 + #ifdef SSKIPOPT
646 +                                if (ssf_select != NULL && sskip_chk(ssf_select, sr.rsrc))
647 +                                        d *= r->scorr;
648 + #endif
649                                  scalescolor(sr.rcol, d);
650                          } else {
651                                  /* PMAP: Add ambient inscattering from

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines