# | Line 325 | Line 325 | m_normal( /* color a ray that hit something normal * | |
---|---|---|
325 | ||
326 | if (nd.rdiff > FTINY) { /* ambient from this side */ | |
327 | copycolor(ctmp, nd.mcolor); /* modified by material color */ | |
328 | < | if (nd.specfl & SP_RBLT) |
329 | < | scalecolor(ctmp, 1.0-nd.trans); |
330 | < | else |
331 | < | scalecolor(ctmp, nd.rdiff); |
328 | > | scalecolor(ctmp, nd.rdiff); |
329 | > | if (nd.specfl & SP_RBLT) /* add in specular as well? */ |
330 | > | addcolor(ctmp, nd.scolor); |
331 | multambient(ctmp, r, hastexture ? nd.pnorm : r->ron); | |
332 | addcolor(r->rcol, ctmp); /* add to returned color */ | |
333 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |