home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / raytrace / radiance / lib / dirt.cal < prev    next >
Encoding:
Text File  |  1989-05-26  |  205 b   |  11 lines

  1. {
  2.     Dirt pattern.
  3.  
  4.     This is probably the simplest application
  5.     imaginable for the fractal noise function.
  6.  
  7.     A1    - degree of "dirtiness"; 1 is very dirty.
  8. }
  9.  
  10. dirt = 1 - A1*.5*(1+fnoise3(Px,Py,Pz));
  11.