home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / NEWS / RADIANCE / LIB / GLOSS.CAL < prev    next >
Text File  |  1993-10-07  |  299b  |  12 lines

  1. {
  2.     Rough surface texture for anisotropic materials.
  3.  
  4.     A1 - RMS facet slope (roughness) in x.
  5.     A2 - roughness in y.
  6.     A3 - roughness in z.
  7. }
  8.  
  9. gloss_dx = A1*nrand(Px*.9113+Py*.3697+Pz*.4468);
  10. gloss_dy = A2*nrand(Px*.85875+Py*.1521+Pz*.1782);
  11. gloss_dz = A3*nrand(Px*.5992+Py*.7961+Pz*.3213);
  12.