ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/bsdfrep.h
(Generate patch)

Comparing ray/src/cv/bsdfrep.h (file contents):
Revision 2.21 by greg, Thu Aug 21 13:44:05 2014 UTC vs.
Revision 2.22 by greg, Fri Aug 22 05:38:44 2014 UTC

# Line 21 | Line 21 | extern "C" {
21   #define ANG2R(r)        (int)((r)*((1<<16)/M_PI))
22   #define R2ANG(c)        (((c)+.5)*(M_PI/(1<<16)))
23  
24 +                                        /* moderated cosine factor */
25 + #define COSF(z)         (fabs(z)*0.98 + 0.02)
26 +
27   typedef union {
28          struct {
29                  float           v;              /* DSF sum */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines