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

Comparing ray/src/rt/srcobstr.c (file contents):
Revision 2.20 by greg, Fri Apr 5 01:10:26 2024 UTC vs.
Revision 2.22 by greg, Mon Dec 9 00:44:29 2024 UTC

# Line 51 | Line 51 | castshadow(int sn, FVECT rorg, FVECT rdir)
51                  if (srcblocker(&rt1))
52                          return(1);
53                                          /* move past failed blocker */
54 <                VSUM(rt.rorg, rt.rop, rt.rdir, FTINY);
54 >                VSUM(rt.rorg, rt.rop, rt.rdir, 10.*FTINY);
55                  rayclear(&rt);          /* & try again... */
56          }
57          return(0);                      /* found no blockers */
# Line 309 | Line 309 | srcblocker(RAY *r)
309          m = findmaterial(r->ro);
310          if (m == NULL)
311                  return(0);              /* no material?! */
312 <        if (!isopaque(m->otype))
312 >        if (!isopaque(m))
313                  return(0);              /* material not a reliable blocker */
314          *srcobstructp(r) = r->robj;     /* else record obstructor */
315          return(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines