ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/WGMDaniso.cal
Revision: 1.1
Committed: Mon Mar 24 20:51:16 2014 UTC (10 years 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

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