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.19 by greg, Wed Mar 26 02:52:31 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 */
# Line 90 | Line 93 | extern unsigned long   bsdf_hist[HISTLEN];
93  
94                                  /* BSDF value for boundary regions */
95   extern double           bsdf_min;
96 + extern double           bsdf_spec_peak;
97 + extern double           bsdf_spec_rad;
98  
99                                  /* processed incident DSF measurements */
100   extern RBFNODE          *dsf_list;
# Line 148 | Line 153 | extern void            ovec_from_pos(FVECT vec, int xpos, int yp
153   /* Compute grid position from normalized input/output vector */
154   extern void             pos_from_vec(int pos[2], const FVECT vec);
155  
156 < /* Evaluate RBF for DSF at the given normalized outgoing direction */
156 > /* Evaluate BSDF at the given normalized outgoing direction */
157   extern double           eval_rbfrep(const RBFNODE *rp, const FVECT outvec);
158  
159   /* Insert a new directional scattering function in our global list */
# Line 192 | Line 197 | extern void            build_mesh(void);
197  
198   /* Find edge(s) for interpolating the given vector, applying symmetry */
199   extern int              get_interp(MIGRATION *miga[3], FVECT invec);
200 +
201 + /* Return single-lobe specular RBF for the given incident direction */
202 + extern RBFNODE *        def_rbf_spec(const FVECT invec);
203  
204   /* Advect and allocate new RBF along edge (internal call) */
205   extern RBFNODE *        e_advect_rbf(const MIGRATION *mig,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines