home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / hfg / list03.pov < prev    next >
Text File  |  1994-01-11  |  838b  |  45 lines

  1. // list03.pov
  2. // Persistence of Vision Raytracer
  3. /* Listing 3 erzeugt Bild 4 */
  4.  
  5. #include "shapes.inc"
  6. #include "colors.inc"
  7. #include "textures.inc"
  8.  
  9. camera {
  10.    location <0.0, 4.0, -2.5>
  11.    direction <0.0, 0.0, 1.0>
  12.    up <0.0, 1.0, 0.0>
  13.    right <1.333333, 0.0, 0.0>
  14.    look_at <0.0, 2.0, 7.0>
  15.  }
  16.  
  17. object {
  18.    intersection {
  19.      sphere { <2.5, 2.5, 7.0> 2.0 }
  20.      object { Cube scale 1.7  
  21.         translate <2.5, 2.5, 7.0> }
  22.      pigment { colour White }
  23.    }
  24.  }
  25.  
  26. object {
  27.    difference {
  28.      object {Cube scale 1.7 
  29.         translate <-2.5, 2.5, 7.0> }
  30.      sphere { <-2.5 2.5 7.0> 2.0  }
  31.      pigment { colour White }
  32.    }
  33.  }
  34.  
  35. object {
  36.   plane {<0.0, 1.0, 0.0>, -4.5  }
  37.   pigment { colour Blue }
  38.  }
  39.  
  40. /* Lichtquelle */
  41. object {
  42.    light_source {
  43.       <2.0, 20.0, 0.0> colour White }
  44.  }
  45.