home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / video / render / rayshade.lzh / rayshade.4.0 / Examples / planet.ray < prev    next >
Encoding:
Text File  |  1992-02-17  |  477 b   |  25 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 320 400
  11. fov 45 34
  12. light 1.0 0.9 0.8 directional 1. -1. 1.
  13. eyep 0. -4. 0.
  14. sphere  ambient .06 .05 .04
  15.     diffuse .9 .85 .8
  16.     1.0 0 0 0
  17.     texture fbm     0.        /* offset */
  18.             1.        /* scale */
  19.             0.3        /* h */
  20.             LACUNARITY    /* lambda */
  21.             OCTAVES        /* octaves */
  22.             -.2        /* thresh */
  23.             planet.map     /* mapname */
  24.         EXPAND(0.7)
  25.