home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / raytrace / rayce27 / balls.r next >
Encoding:
Text File  |  1994-01-13  |  1.2 KB  |  56 lines

  1. /* 
  2.    An MTV test scene.
  3.    Shamelessly stolen from work by Mark T. Vandewettering.
  4. */
  5.  
  6. #include "colors.inc"
  7.  
  8. camera {
  9.    location <2.1, 1.3, 0.2>
  10.    look_at <0, 0, 0>
  11.    sky <0, 0, 1>
  12.    fov 45
  13. }
  14.  
  15. options {
  16.   background color SkyBlue
  17.   depth 10
  18.   iterations 4    // only for AA 
  19.   antialias 0.5
  20.   cutoff 0.01
  21. }
  22.  
  23. light_source { <4, 3, 2> color Gray80 }
  24. light_source { <1, -4, 4> color Gray80 }
  25. light_source { <-3, 1, 5> color Gray80 }
  26.  
  27. plane { 
  28.   <0, 0, 1>, -0.5
  29.   texture { diffuse color rgb 0.8 * <color YellowGreen> }
  30. }
  31.  
  32. composite { 
  33.   sphere { <0, 0, 0>, .5 }
  34.   sphere { <.272166, .272166, .544331>, .166667 }
  35.   sphere { <.643951, .172546, 1.11022e-16>, .166667 }
  36.   sphere { <.172546, .643951, 1.11022e-16>, .166667 }
  37.   sphere { <-.371785, 0.0996195, .544331>, .166667 }
  38.   sphere { <-.471405, .471405, 1.11022e-16>, .166667 }
  39.   sphere { <-.643951, -.172546, 1.11022e-16>, .166667 }
  40.   sphere { <0.0996195, -.371785, .544331>, .166667 }
  41.   sphere { <-.172546, -.643951, 1.11022e-16>, .166667 }
  42.   sphere { <.471405, -.471405, 1.11022e-16>, .166667 }
  43.   texture { 
  44.     diffuse color SteelBlue 
  45.     diffuse  0.5      
  46.     specular color White 
  47.     specular 0.5
  48.     reflection color White
  49.     reflection 0.5
  50.     roughness 0.3333
  51.   }
  52. }
  53.  
  54.  
  55.  
  56.