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.62 by greg, Sat Mar 27 17:50:18 2021 UTC vs.
Revision 2.63 by greg, Sat Mar 27 20:08:58 2021 UTC

# Line 683 | Line 683 | m_bsdf(OBJREC *m, RAY *r)
683                  SDfreeCache(nd.sd);
684                  return(1);
685          }
686 <                                                /* diffuse reflectance */
686 >                                                /* diffuse components */
687          if (hitfront) {
688                  cvt_sdcolor(nd.rdiff, &nd.sd->rLambFront);
689                  if (m->oargs.nfargs >= 3) {
# Line 692 | Line 692 | m_bsdf(OBJREC *m, RAY *r)
692                                          m->oargs.farg[2]);
693                          addcolor(nd.rdiff, ctmp);
694                  }
695 +                cvt_sdcolor(nd.tdiff, &nd.sd->tLambFront);
696          } else {
697                  cvt_sdcolor(nd.rdiff, &nd.sd->rLambBack);
698                  if (m->oargs.nfargs >= 6) {
# Line 700 | Line 701 | m_bsdf(OBJREC *m, RAY *r)
701                                          m->oargs.farg[5]);
702                          addcolor(nd.rdiff, ctmp);
703                  }
704 +                cvt_sdcolor(nd.tdiff, &nd.sd->tLambBack);
705          }
706 <                                                /* diffuse transmittance */
705 <        cvt_sdcolor(nd.tdiff, hitfront ? &nd.sd->tLambFront : &nd.sd->tLambBack);
706 <        if (m->oargs.nfargs >= 9) {
706 >        if (m->oargs.nfargs >= 9) {             /* add diffuse transmittance? */
707                  setcolor(ctmp, m->oargs.farg[6],
708                                  m->oargs.farg[7],
709                                  m->oargs.farg[8]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines