Skip to content

Commit

Permalink
fix: Favor "Transmission Back" for diffuse transmittance
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Mar 27, 2021
1 parent f55ea1a commit e069a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/bsdf_m.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: bsdf_m.c,v 3.39 2019/09/11 00:24:03 greg Exp $";
static const char RCSid[] = "$Id: bsdf_m.c,v 3.40 2021/03/27 16:40:46 greg Exp $";
#endif
/*
* bsdf_m.c
Expand Down Expand Up @@ -709,10 +709,10 @@ SDloadMtx(SDData *sd, ezxml_t wtl)
/* separate diffuse components */
sd->rf = extract_diffuse(&sd->rLambFront, sd->rf);
sd->rb = extract_diffuse(&sd->rLambBack, sd->rb);
if (sd->tf != NULL)
sd->tf = extract_diffuse(&sd->tLamb, sd->tf);
if (sd->tb != NULL)
sd->tb = extract_diffuse(&sd->tLamb, sd->tb);
if (sd->tf != NULL)
sd->tf = extract_diffuse(&sd->tLamb, sd->tf);
/* return success */
return SDEnone;
}
Expand Down

0 comments on commit e069a7a

Please sign in to comment.