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); |