home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / raytrace / rayce27 / csg5.r < prev    next >
Encoding:
Text File  |  1994-01-15  |  823 b   |  45 lines

  1. // and even more!
  2.  
  3. camera{
  4.   location <0, 0, -1>
  5.   look_at <0, 0, 1>
  6.   fov 120
  7.   aspect 1.333
  8. }
  9.  
  10. options { background color red 1.0 }
  11.  
  12. /* 
  13.   if you are inside a union, the interior walls can't be seen.
  14.   
  15.   PoV1 actually fails this test. In PoV2, you get the correct result, if you use "merge"
  16.  
  17.  */
  18.  
  19. /* I still haven't figured out why indicator's shadow has such a weird color
  20.  */ 
  21.  
  22. object {
  23.   union {
  24.     sphere { <0, 0, 0>, 2 }
  25.     sphere { <0, 0, 2>, 2 }
  26.   }
  27.   texture { 
  28.     ambient color blue 0.2 
  29.     diffuse color blue 0.5 green 0.3 
  30.   }
  31. }
  32.  
  33. object { light_source { < 1, -1, 1> color red 1.0 blue 1.0 }  }
  34. object { light_source  { <1, 1.5, 2> color green 1.0 } }
  35.  
  36. #declare indicator = object {
  37.   sphere { <0, 0, 1>, 0.2 }
  38.   texture { ambient color green 1.0 
  39.     diffuse color red 1.0 
  40.   }
  41. }
  42.  
  43. object { indicator }
  44.  
  45.