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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer
  3. // This scene shows fog with filter and transmittance.
  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. // Filtering fog with transmittance threshold
  20. fog {colour rgbft<0.3, 0.5, 0.2, 1.0, 0.1> distance 150}
  21.  
  22. // Put down the beloved famous raytrace green/yellow checkered floor
  23. plane { y, -10
  24.    pigment {
  25.       checker colour Yellow colour Green
  26.       scale 20
  27.    }
  28.    finish {
  29.       ambient 0.2
  30.       diffuse 0.8
  31.    }
  32. }
  33.  
  34. sphere { <0, 25, 0>, 40
  35.    pigment {Red}
  36.    finish {
  37.       ambient 0.2
  38.       diffuse 0.6
  39.       phong 1.0
  40.       phong_size 20
  41.    }
  42. }
  43.  
  44. sphere { <-100, 150, 200>,  20
  45.    pigment {Green}
  46.    finish {
  47.       ambient 0.2
  48.       diffuse 0.6
  49.       phong 1.0
  50.       phong_size 20
  51.    }
  52. }
  53.  
  54. sphere { <100, 25, 100>, 30
  55.    pigment {Blue}
  56.    finish {
  57.       ambient 0.2
  58.       diffuse 0.6
  59.       phong 1.0
  60.       phong_size 20
  61.    }
  62. }
  63.  
  64. light_source {<100, 120, 40> colour White}
  65.