home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / tt / raysh402 / planet.ray < prev    next >
Text File  |  1992-02-09  |  467b  |  24 lines

  1. /*
  2.  * "planet" input file to demonstrate fbm texture and use of cpp
  3.  * C. Kolb
  4.  */
  5. #define EXPAND(x)    scale x x x
  6.  
  7. #define LACUNARITY    2.
  8. #define OCTAVES        6
  9.  
  10. screen 256 256
  11. light 1.0 0.9 0.8 directional 1. -1. 1.
  12. eyep 0. -4. 0.
  13. sphere  ambient .06 .05 .04
  14.     diffuse .9 .85 .8
  15.     1.0 0 0 0
  16.     texture fbm     0.        /* offset */
  17.             1.        /* scale */
  18.             0.3        /* h */
  19.             LACUNARITY    /* lambda */
  20.             OCTAVES        /* octaves */
  21.             -.2        /* thresh */
  22.             planet.map     /* mapname */
  23.         EXPAND(0.7)
  24.