--- ray/src/rt/normal.c 1995/09/26 15:05:32 2.30 +++ ray/src/rt/normal.c 1995/11/06 12:03:17 2.31 @@ -290,7 +290,7 @@ register RAY *r; gaussamp(r, &nd); if (nd.rdiff > FTINY) { /* ambient from this side */ - ambient(ctmp, r); + ambient(ctmp, r, hastexture?nd.pnorm:r->ron); if (nd.specfl & SP_RBLT) scalecolor(ctmp, 1.0-nd.trans); else @@ -300,7 +300,7 @@ register RAY *r; } if (nd.tdiff > FTINY) { /* ambient from other side */ flipsurface(r); - ambient(ctmp, r); + ambient(ctmp, r, hastexture?nd.pnorm:r->ron); if (nd.specfl & SP_TBLT) scalecolor(ctmp, nd.trans); else