--- ray/src/rt/aniso.c 2010/10/10 19:49:17 2.48 +++ ray/src/rt/aniso.c 2010/10/10 22:31:45 2.49 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: aniso.c,v 2.48 2010/10/10 19:49:17 greg Exp $"; +static const char RCSid[] = "$Id: aniso.c,v 2.49 2010/10/10 22:31:45 greg Exp $"; #endif /* * Shading functions for anisotropic materials. @@ -357,7 +357,7 @@ agaussamp( /* sample anisotropic Gaussian specular */ copycolor(scol, np->scolor); ns2go = 1; if (specjitter > 1.5) { /* multiple samples? */ - ns2go = specjitter*sr.rweight + .5; + ns2go = specjitter*r->rweight + .5; if (sr.rweight <= minweight*ns2go) ns2go = sr.rweight/minweight; if (ns2go > 1) { @@ -418,7 +418,7 @@ agaussamp( /* sample anisotropic Gaussian specular */ rayorigin(&sr, SPECULAR, r, sr.rcoef) == 0) { ns2go = 1; if (specjitter > 1.5) { /* multiple samples? */ - ns2go = specjitter*sr.rweight + .5; + ns2go = specjitter*r->rweight + .5; if (sr.rweight <= minweight*ns2go) ns2go = sr.rweight/minweight; if (ns2go > 1) {