# | Line 199 | Line 199 | static int isoSpecPhotonScatter (NORMDAT *nd, RAY *ray | |
---|---|---|
199 | int niter, i = 0; | |
200 | ||
201 | /* Set up sample coordinates */ | |
202 | < | getperpendicular(u, nd -> pnorm); |
202 | > | getperpendicular(u, nd -> pnorm, 1); |
203 | fcross(v, nd -> pnorm, u); | |
204 | ||
205 | if (nd -> specfl & SP_REFL) { | |
# | Line 263 | Line 263 | static void diffPhotonScatter (FVECT normal, RAY* rayO | |
263 | int i = 0; | |
264 | ||
265 | /* Set up sample coordinates */ | |
266 | < | getperpendicular(u, normal); |
266 | > | getperpendicular(u, normal, 1); |
267 | fcross(v, normal, u); | |
268 | ||
269 | /* Convert theta & phi to cartesian */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |