# | Line 14 | Line 14 | static const char RCSid[] = "$Id$"; | |
---|---|---|
14 | #include "otypes.h" | |
15 | #include "rtotypes.h" | |
16 | #include "func.h" | |
17 | + | #include "pmapmat.h" |
18 | ||
19 | /* | |
20 | * Arguments to this material include the color and specularity. | |
# | Line 127 | Line 128 | dirbrdf( /* compute source contribution */ | |
128 | scalecolor(ctmp, dtmp); | |
129 | addcolor(cval, ctmp); | |
130 | } | |
131 | < | if (ldot > 0.0 ? np->rspec <= FTINY : np->tspec <= FTINY) |
131 | > | if ((ldot > 0.0 ? np->rspec <= FTINY : np->tspec <= FTINY) || |
132 | > | ambRayInPmap(np->pr)) |
133 | return; /* diffuse only */ | |
134 | /* set up function */ | |
135 | setbrdfunc(np); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |