129 |
|
addcolor(cval, ctmp); |
130 |
|
} |
131 |
|
if (ldot > 0.0 ? np->rspec <= FTINY : np->tspec <= FTINY) |
132 |
< |
return; /* no specular component */ |
132 |
> |
return; /* diffuse only */ |
133 |
|
/* set up function */ |
134 |
|
setbrdfunc(np); |
135 |
|
sa = np->mp->oargs.sarg; |
145 |
|
colval(ctmp,RED) = 0.0; |
146 |
|
else |
147 |
|
colval(ctmp,RED) = funvalue(sa[6], 4, lddx); |
148 |
< |
if (!strcmp(sa[7],sa[6])) |
148 |
> |
if (sa[7][0] == '0') |
149 |
> |
colval(ctmp,GRN) = 0.0; |
150 |
> |
else if (!strcmp(sa[7],sa[6])) |
151 |
|
colval(ctmp,GRN) = colval(ctmp,RED); |
152 |
|
else |
153 |
|
colval(ctmp,GRN) = funvalue(sa[7], 4, lddx); |