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

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.12 by greg, Sat Dec 6 01:08:53 2008 UTC vs.
Revision 2.14 by greg, Wed Dec 10 07:07:07 2008 UTC

# Line 69 | Line 69 | nextsample:
69          for (i = 0; i < 3; i++)
70                  vpos[i] += (double)cent[i]/MAXSPART;
71                                          /* avoid circular aiming failures */
72 <        if (source[si->sn].sflags & SCIR) {
72 >        if ((source[si->sn].sflags & SCIR) && (si->np > 1 || dstrsrc > 0.7)) {
73                  FVECT   trim;
74                double  d;
74                  if (source[si->sn].sflags & (SFLAT|SDISTANT)) {
75                          d = 1.12837917;         /* correct setflatss() */
76                          trim[SU] = d*sqrt(1.0 - 0.5*vpos[SV]*vpos[SV]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines