home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / atmos / foglayr.pov < prev    next >
Text File  |  1997-12-12  |  1KB  |  74 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer.
  3. // This scene shows fog with transmittance used.
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. camera {
  11.    location  <0, 20, -100>
  12.    direction <0,  0,    1>
  13.    up        <0,  1,    0>
  14.    right   <4/3,  0,    0>
  15. }
  16.  
  17. background { colour SkyBlue }
  18.  
  19. fog{
  20.     color Gray70
  21.     fog_type 2
  22.     fog_alt 0.35
  23.     fog_offset 0
  24.     distance 1.5
  25.     turbulence <.15, .15, .15>
  26.     omega 0.35
  27.     lambda 1.25
  28.     octaves 5
  29. }
  30.  
  31. // Put down the beloved famous raytrace green/yellow checkered floor
  32. plane { y, -10
  33.    pigment {
  34.       checker colour Yellow colour Green
  35.       scale 20
  36.    }
  37.    finish {
  38.       ambient 0.2
  39.       diffuse 0.8
  40.    }
  41. }
  42.  
  43. sphere { <0, 25, 0>, 40
  44.    pigment {Red}
  45.    finish {
  46.       ambient 0.2
  47.       diffuse 0.6
  48.       phong 1.0
  49.       phong_size 20
  50.    }
  51. }
  52.  
  53. sphere { <-100, 150, 200>,  20
  54.    pigment {Green}
  55.    finish {
  56.       ambient 0.2
  57.       diffuse 0.6
  58.       phong 1.0
  59.       phong_size 20
  60.    }
  61. }
  62.  
  63. sphere { <100, 25, 100>, 30
  64.    pigment {Blue}
  65.    finish {
  66.       ambient 0.2
  67.       diffuse 0.6
  68.       phong 1.0
  69.       phong_size 20
  70.    }
  71. }
  72.  
  73. light_source {<100, 120, 40> colour White}
  74.