ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/WGMDiso.cal
Revision: 1.1
Committed: Mon Mar 24 20:51:16 2014 UTC (10 years, 1 month ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad4R2P2, rad5R0, rad5R1, rad4R2, rad4R2P1, rad5R3, HEAD
Log Message:
Added Ashikhmin-Shirley BRDF model

File Contents

# User Rev Content
1 greg 1.1 { RCSid $Id$ }
2     { Ward-Geisler-Moroder-Duer isotropic BRDF model }
3    
4     { Parameters (change these) }
5     rho_d : 0.095;
6     rho_s : 0.05;
7     a : 0.08;
8    
9     exfunc(hx,hy,hz) : exp(-(hx*hx + hy*hy)/(a*a*hz*hz)) *
10     (hx*hx + hy*hy + hz*hz) /
11     (PI*a*a*hz*hz*hz*hz);
12    
13     { Note that we assume i and o vectors are normalized }
14    
15     wgmdiso(ix,iy,iz,ox,oy,oz) : if( -iz*oz, 0,
16     rho_d/PI + rho_s*exfunc(ix+ox,iy+oy,iz+oz) );