home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 279 / POVSCN20.ZIP / GLASDISH.POV < prev    next >
Text File  |  1993-09-28  |  1KB  |  46 lines

  1. // Persistence of Vision Raytracer
  2. // This data file makes a good starting point for developing tests and
  3. // new data files.  It is also used as the benchmark for the timing tests.
  4.  
  5. #include "colors.inc"           // Standard colors library
  6. #include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
  7.  
  8. camera {
  9.    location  <0, 1.5,-2>
  10.    direction <0, 0,   1>
  11.    up        <0, 1,   0>
  12.    right   <4/3, 0,   0>
  13.    look_at   <0, 0,   0>
  14. }
  15.  
  16. // Light source (backlit)
  17. light_source {<0, 30, 10> color White}
  18.  
  19. // A "sky sphere" to reflect in the glass
  20. sphere {<0, 0, 0>, 1000 texture{pigment{ color DimGray } } }
  21.  
  22. // Crystal dish
  23. intersection {
  24.    sphere {<0, 0, 0>, 1}
  25.    sphere {<0, 0.25, 0>, 0.75 inverse}
  26.    plane  {y, 0.75 }
  27.    texture {Glass3 finish{reflection 0.25 }}
  28.    bounded_by { sphere { <0, 0, 0>, 1.1 } }
  29. }
  30.  
  31. plane { y, -1 
  32.    pigment {
  33.       DMFDarkOak
  34.       scale <0.75, 0.75, 1>
  35.       translate <10, -0.45, 10>
  36.       rotate <5, 30, 0.25>
  37.    }
  38.    finish {
  39.       ambient 0.05
  40.       diffuse 0.5
  41.       reflection 0.35
  42.       specular 0.9
  43.       roughness 0.005
  44.    }
  45. }
  46.