Skip to content

Commit

Permalink
fix: corrected priority for calculating diffuse transmittance
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Mar 27, 2021
1 parent f31b4f9 commit f55ea1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/bsdf_t.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: bsdf_t.c,v 3.48 2020/05/14 19:20:13 greg Exp $";
static const char RCSid[] = "$Id: bsdf_t.c,v 3.49 2021/03/27 15:53:01 greg Exp $";
#endif
/*
* bsdf_t.c
Expand Down Expand Up @@ -1430,10 +1430,10 @@ SDloadTre(SDData *sd, ezxml_t wtl)
/* separate diffuse components */
extract_diffuse(&sd->rLambFront, sd->rf);
extract_diffuse(&sd->rLambBack, sd->rb);
if (sd->tf != NULL)
extract_diffuse(&sd->tLamb, sd->tf);
if (sd->tb != NULL)
extract_diffuse(&sd->tLamb, sd->tb);
if (sd->tf != NULL)
extract_diffuse(&sd->tLamb, sd->tf);
/* return success */
return SDEnone;
}
Expand Down

0 comments on commit f55ea1a

Please sign in to comment.