ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/m_brdf.c
(Generate patch)

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 1.10 by greg, Mon Jun 17 08:53:58 1991 UTC vs.
Revision 1.11 by greg, Tue Jun 18 08:59:55 1991 UTC

# Line 350 | Line 350 | register BRDFDAT  *np;
350          varset("NxP", '=', vec[0]/funcxf.sca);
351          varset("NyP", '=', vec[1]/funcxf.sca);
352          varset("NzP", '=', vec[2]/funcxf.sca);
353 <        varset("RdotP", '=', np->pdot);
353 >        varset("RdotP", '=', np->pdot <= -1.0 ? -1.0 :
354 >                        np->pdot >= 1.0 ? 1.0 : np->pdot);
355          varset("CrP", '=', colval(np->mcolor,RED));
356          varset("CgP", '=', colval(np->mcolor,GRN));
357          varset("CbP", '=', colval(np->mcolor,BLU));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines