home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 4613 / tunnel.rrt < prev    next >
Text File  |  1980-01-06  |  1KB  |  56 lines

  1. // Real Ray Tracer
  2. // In a tunnel ...
  3.  
  4. #include "colors.inc"
  5. #include "textures.inc"
  6.  
  7. object {
  8.   difference {
  9.     difference {
  10.       box { <-5 -2 -5> <5 2 5> }
  11.       box { <-1 -1 -6> <1 1 6> }
  12.     }
  13.     box { <-6 -1 -1> <6 1 1> }
  14.   }
  15.   texture {
  16.     Red_Marble
  17.     scale <0.1 0.1 0.1>
  18.     ambient 0.15
  19.     diffuse 0.5
  20.   }
  21. }
  22.  
  23. object {
  24.   plane { <0 1 0> -1 }
  25.   texture {
  26.     color red 0.8 green 0.5 blue 0.2
  27.     ambient 0.075
  28.     diffuse 0.175
  29.     bump {
  30.       bumps 0.25
  31.       scale <0.05 0.05 0.05>
  32.     }
  33.   }
  34. }
  35.  
  36. camera {
  37.   location <-.9 0 -1.5>
  38.   direction <1 0 1>
  39. }
  40.  
  41. environment {
  42.   sky
  43.   color_map {
  44.     [0 1 color Blue color White ]
  45.   }
  46. }
  47.  
  48. object { light_source { <0 0.8 -2.5> intensity 4 color White } }
  49. object { light_source { <0 0.8  2.5> intensity 4 color Green } }
  50. object { light_source { <-2.5 0.8 0> intensity 4 color White } }
  51. object { light_source { < 2.5 0.8 0> intensity 4 color White } }
  52.  
  53. object { light_source { <-3 7 -10> color White } }
  54.  
  55. end.
  56.