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

  1. /*
  2.  * Simple demo of how uv texturing and bump mapping works.
  3.  * You'll need to define the pathname of an image you want to slap
  4.  * on the cylinder.
  5.  *
  6.  * To run, say something like:
  7.  *     rayshade -v -C -DIMAGEFILE=mandrill.rle stripe.ray > stripe.rle
  8.  *
  9.  * C. Kolb 12/90
  10.  */
  11. #ifndef IMAGEFILE
  12. #define IMAGEFILE /usr/u/utah/img/mandrill.rle
  13. #endif
  14.  
  15. surface white ambient .1 .1 .1  diffuse .6 .6 .6
  16.  
  17. cylinder 1  -3 0 0  3 0 0
  18.     texture stripe white 0.1 3 /* add ten stripes per, rotated */
  19.         scale .1 .1 1.
  20.         rotate 0 0 1 45
  21.     texture image        /* and smack on 25 copies of the image */
  22.         IMAGEFILE
  23.         textsurf white
  24.         scale .2 .2 1.
  25. screen 500 160
  26.