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.21 by greg, Sat Nov 9 15:21:32 2024 UTC vs.
Revision 2.25 by greg, Sat Jan 18 03:49:00 2025 UTC

# Line 26 | Line 26 | srcskip(                       /* pre-emptive test for source to skip */
26  
27          if (sp->sflags & SSKIP)
28                  return(1);
29 <
30 <        if ((sp->sflags & (SPROX|SDISTANT)) != SPROX)
31 <                return(0);
32 <
33 <        return(dist2(r->rorg, sp->sloc) >
29 >        if ((sp->sflags & (SPROX|SDISTANT)) == SPROX)
30 >                return(dist2(r->rorg, sp->sloc) >
31                          (sp->sl.prox + sp->srad)*(sp->sl.prox + sp->srad));
32 +        return(0);
33   }
34  
35   double

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines