# | Line 402 | Line 402 | gaussamp( /* sample Gaussian specular */ | |
---|---|---|
402 | (np->specfl & (SP_TRAN|SP_TBLT)) != SP_TRAN) | |
403 | return; | |
404 | /* set up sample coordinates */ | |
405 | < | getperpendicular(u, np->pnorm); |
405 | > | getperpendicular(u, np->pnorm, rand_samp); |
406 | fcross(v, np->pnorm, u); | |
407 | /* compute reflection */ | |
408 | if ((np->specfl & (SP_REFL|SP_RBLT)) == SP_REFL && |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |