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

Comparing ray/src/gen/gendaylit.c (file contents):
Revision 2.3 by greg, Sat Jun 20 21:34:34 2009 UTC vs.
Revision 2.6 by greg, Tue Aug 16 18:09:53 2011 UTC

# Line 43 | Line 43 | double  normsc();
43   /* Perez sky parametrization : epsilon and delta calculations from the direct and diffuse irradiances */
44   double sky_brightness();
45   double sky_clearness();
46 + void computesky();
47  
48   /* calculation of the direct and diffuse components from the Perez parametrization */
49   double  diffus_irradiance_from_sky_brightness();
# Line 273 | Line 274 | char  *argv[];
274   }
275  
276  
277 + void
278   computesky()                    /* compute sky parameters */
279   {
280  
281          /* new variables */
282 <        int     j, i;
282 >        int     j;
283          float   *lv_mod;  /* 145 luminance values*/
284            /* 145 directions for the calculation of the normalization coefficient, coefficient Perez model */
285          float   *theta_o, *phi_o, *coeff_perez;
286          double  dzeta, gamma;
285        double  diffusion;
287          double  normfactor;
288  
289  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines