home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray3a / POV3Demo / Recurse / pov / Pyramid next >
Text File  |  1996-04-09  |  784b  |  44 lines

  1. /*
  2.         iterated fractal * sample recursion
  3.  
  4.         Sven Hilscher * 3D-Max usergroup germany
  5.         email: sven@rufus.central.de
  6. */
  7.  
  8. #version 3.0
  9. global_settings { assumed_gamma 2.2 }
  10.  
  11. #include "colors.inc"
  12. #include "textures.inc"
  13.  
  14. union {
  15.  
  16.   #declare radius_max = 4
  17.   #declare level = 5
  18.  
  19.   #declare x_pos = 0
  20.   #declare y_pos = 0
  21.   #declare z_pos = 0
  22.  
  23.   #declare dir = 1
  24.                  // 1 = z->
  25.                  // 2 = x->
  26.                  // 3 = x<-
  27.                  // 4 = y->
  28.                  // 5 = y<-
  29.  
  30.   // go subroutine
  31.   #include "pyramid.inc"
  32.  
  33.   //texture {  pigment { color rgb <1,1,0> } }
  34.   texture { Polished_Chrome }
  35. }
  36.  
  37. light_source { <2,20,10> color rgb <1,1,1> }
  38.  
  39. background { color rgb <.4, .3, .2> }
  40.  
  41. camera { location <5,17,19>
  42.          look_at  <0,0,0>
  43. }
  44.