/* * tree.ray * * Simple scene to show output of "tree.c" and "leaves.c" * * Stuart Warmink, April 1994 * sw@whservh.att.com * * Feel free to use and/or distribute for non-commercial purposes * as long as this header remains with this file. * */ #define HAVE_LAWN_MAP 1 /*---------------------------------------------------------------------------*/ surface grey /* trees are really grey! */ ambient 0.15 0.15 0.15 diffuse 0.3 0.3 0.3 surface leaf_green /* or Falls colours, here */ ambient 0.3 0.15 0 diffuse 0.6 0.3 0 surface grass_green /* if lawn.mtv is not av. */ ambient 0 0.15 0 diffuse 0 0.3 0 surface back /* so that image mapping */ ambient 0.5 0.5 0.5 /* results in good brightness */ diffuse 1 1 1 /*---------------------------------------------------------------------------*/ #include "tree.def.ray" #include "leaves.def.ray" object grey tree object leaves translate 0 0 5 #ifdef HAVE_LAWN_MAP plane back 0 0 -0.001 0 0 1 texture image lawn.rle map planar smooth scale 300 300 300 #else plane grass_green 0 0 -0.001 0 0 1 texture bump 0.7 scale 2 2 1 #endif /*---------------------------------------------------------------------------*/ background 0 0 0.7 /* not used, but you never know... */ light 0.9 directional 220 100 250 light 1.2 ambient /*---------------------------------------------------------------------------*/ eyep 1000 2000 2000 lookp -100 0 350 fov 26 sample 2 screen 1152 900 /* or similar ratio */