# | Line 9 | Line 9 | static const char RCSid[] = "$Id$"; | |
---|---|---|
9 | ||
10 | #include "ray.h" | |
11 | ||
12 | + | #include "ambient.h" |
13 | + | |
14 | #include "otypes.h" | |
15 | ||
16 | #include "func.h" | |
# | Line 265 | Line 267 | register RAY *r; | |
267 | /* diffuse reflection */ | |
268 | nd.rdiff = 1.0 - nd.trans - nd.rspec; | |
269 | ||
270 | < | if (r->ro != NULL && isflat(r->ro->otype) && |
269 | < | DOT(r->pert,r->pert) <= FTINY*FTINY) |
270 | > | if (r->ro != NULL && isflat(r->ro->otype)) |
271 | nd.specfl |= SP_FLAT; | |
272 | ||
273 | getacoords(r, &nd); /* set up coordinates */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |