home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / video / render / radiance.lzh / ray / lib / gloss.cal < prev    next >
Encoding:
Text File  |  1991-10-08  |  288 b   |  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.