home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / GRAPHICS / rayshade.lzh / EXAMPLES / planet.ray < prev    next >
Text File  |  1990-09-22  |  1KB  |  45 lines

  1. /*
  2.  * Example rayshade input file describing a single texture-mapped sphere.
  3.  * To use, feed to the C pre-processor, and then to rayshade.  Depending
  4.  * on your system type, this probably means doing something like:
  5.  *
  6.  *        cpp thisfile | rayshade <options>
  7.  * or
  8.  *
  9.  *        cc -E thisfile | rayshade <options>
  10.  * 
  11.  * Note that using cpp means that, in addition to macros, you can use #include,
  12.  * #define, #ifdef, etc. in your input files.
  13.  *
  14.  * C. Kolb 9/89
  15.  *
  16.  * $Id: planet.ray,v 3.0.1.2 89/12/06 17:06:49 craig Exp $
  17.  *
  18.  * $Log:    planet.ray,v $
  19.  * Revision 3.0.1.2  89/12/06  17:06:49  craig
  20.  * patch2: Changes to show use of cpp.
  21.  * 
  22.  * Revision 3.0.1.1  89/11/28  13:57:21  craig
  23.  * patch2: Decreased intensity of planet's ambient color.
  24.  * 
  25.  */
  26. #define EXPAND(x)    scale x x x
  27.  
  28. #define BLACK        0 0 0
  29. #define LACUNARITY    2.
  30. #define OCTAVES        6
  31.  
  32. screen 256 256
  33. light 1.0 0.9 0.8 directional 1. -1. 1.
  34. eyep 0. -4. 0.
  35. surface basesurf .06 .05 .04 .9 .85 .8 BLACK 0 0 0 0
  36. sphere basesurf 1.0 0 0 0
  37.     texture fbm     0.        /* offset */
  38.             1.        /* scale */
  39.             0.3        /* h */
  40.             LACUNARITY    /* lambda */
  41.             OCTAVES        /* octaves */
  42.             -.2        /* thresh */
  43.             planet.map     /* mapname */
  44.         EXPAND(0.7)
  45.