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

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 2.31 by greg, Sat Jan 25 18:27:39 2014 UTC vs.
Revision 2.32 by greg, Thu Aug 6 16:06:06 2015 UTC

# Line 140 | Line 140 | dirbrdf(               /* compute source contribution */
140          lddx[3] = omega;
141                                          /* compute BRTDF */
142          if (np->mp->otype == MAT_BRTDF) {
143 <                if (sa[6][0] == '0')            /* special case */
143 >                if (sa[6][0] == '0' && !sa[6][1])       /* special case */
144                          colval(ctmp,RED) = 0.0;
145                  else
146                          colval(ctmp,RED) = funvalue(sa[6], 4, lddx);
147 <                if (sa[7][0] == '0')
147 >                if (sa[7][0] == '0' && !sa[7][1])
148                          colval(ctmp,GRN) = 0.0;
149                  else if (!strcmp(sa[7],sa[6]))
150                          colval(ctmp,GRN) = colval(ctmp,RED);
151                  else
152                          colval(ctmp,GRN) = funvalue(sa[7], 4, lddx);
153 <                if (!strcmp(sa[8],sa[6]))
153 >                if (sa[8][0] == '0' && !sa[8][1])
154 >                        colval(ctmp,BLU) = 0.0;
155 >                else if (!strcmp(sa[8],sa[6]))
156                          colval(ctmp,BLU) = colval(ctmp,RED);
157                  else if (!strcmp(sa[8],sa[7]))
158                          colval(ctmp,BLU) = colval(ctmp,GRN);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines