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

Comparing ray/src/rt/m_bsdf.c (file contents):
Revision 2.50 by greg, Mon Jun 25 20:49:10 2018 UTC vs.
Revision 2.51 by greg, Mon Jun 25 23:04:06 2018 UTC

# Line 624 | Line 624 | m_bsdf(OBJREC *m, RAY *r)
624                  raytrans(r);                    /* hide our proxy */
625                  return(1);
626          }
627 +        if (hasthick && r->crtype & SHADOW)     /* early shadow check #1 */
628 +                return(1);
629          nd.mp = m;
630          nd.pr = r;
631                                                  /* get BSDF data */
632          nd.sd = loadBSDF(m->oargs.sarg[hasthick]);
633 <                                                /* early shadow check */
633 >                                                /* early shadow check #2 */
634          if (r->crtype & SHADOW && (nd.sd->tf == NULL) & (nd.sd->tb == NULL))
635                  return(1);
636                                                  /* diffuse reflectance */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines