/* * Example rayshade input file describing a single texture-mapped sphere. * To use, feed to the C pre-processor, and then to rayshade. Depending * on your system type, this probably means doing something like: * * cpp thisfile | rayshade * or * * cc -E thisfile | rayshade * * Note that using cpp means that, in addition to macros, you can use #include, * #define, #ifdef, etc. in your input files. * * C. Kolb 9/89 * * $Id: planet.ray,v 3.0.1.2 89/12/06 17:06:49 craig Exp $ * * $Log: planet.ray,v $ * Revision 3.0.1.2 89/12/06 17:06:49 craig * patch2: Changes to show use of cpp. * * Revision 3.0.1.1 89/11/28 13:57:21 craig * patch2: Decreased intensity of planet's ambient color. * */ #define EXPAND(x) scale x x x #define BLACK 0 0 0 #define LACUNARITY 2. #define OCTAVES 6 screen 256 256 light 1.0 0.9 0.8 directional 1. -1. 1. eyep 0. -4. 0. surface basesurf .06 .05 .04 .9 .85 .8 BLACK 0 0 0 0 sphere basesurf 1.0 0 0 0 texture fbm 0. /* offset */ 1. /* scale */ 0.3 /* h */ LACUNARITY /* lambda */ OCTAVES /* octaves */ -.2 /* thresh */ planet.map /* mapname */ EXPAND(0.7)