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

Comparing ray/src/common/bsdf.c (file contents):
Revision 2.53 by greg, Thu Feb 2 04:46:38 2017 UTC vs.
Revision 2.54 by greg, Mon May 15 22:44:10 2017 UTC

# Line 646 | Line 646 | SDevalBSDF(SDValue *sv, const FVECT outVec, const FVEC
646          } else if (!(inFront | outFront)) {
647                  *sv = sd->rLambBack;
648                  sdf = sd->rb;
649 <        } else if (inFront) {
649 >        } else if (outFront) {
650                  *sv = sd->tLamb;
651                  sdf = (sd->tf != NULL) ? sd->tf : sd->tb;
652 <        } else /* inBack */ {
652 >        } else /* inFront & !outFront */ {
653                  *sv = sd->tLamb;
654                  sdf = (sd->tb != NULL) ? sd->tb : sd->tf;
655          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines