home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_040 / pov3demo / atmos / foglyr2.pov < prev    next >
Text File  |  1997-12-12  |  1KB  |  85 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 Blue
  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. fog{
  31.     color Orange
  32.     fog_type 2
  33.     fog_alt 1.45
  34.     fog_offset 0
  35.     distance 1.5
  36.     turbulence <.2, .2, .2>
  37.     omega 0.40
  38.     lambda 1.25
  39.     octaves 5
  40. }
  41.  
  42. // Put down the beloved famous raytrace green/yellow checkered floor
  43. plane { y, -10
  44.    pigment {
  45.       checker colour Yellow colour Green
  46.       scale 20
  47.    }
  48.    finish {
  49.       ambient 0.2
  50.       diffuse 0.8
  51.    }
  52. }
  53.  
  54. sphere { <0, 25, 0>, 40
  55.    pigment {Red}
  56.    finish {
  57.       ambient 0.2
  58.       diffuse 0.6
  59.       phong 1.0
  60.       phong_size 20
  61.    }
  62. }
  63.  
  64. sphere { <-100, 150, 200>,  20
  65.    pigment {Green}
  66.    finish {
  67.       ambient 0.2
  68.       diffuse 0.6
  69.       phong 1.0
  70.       phong_size 20
  71.    }
  72. }
  73.  
  74. sphere { <100, 25, 100>, 30
  75.    pigment {Blue}
  76.    finish {
  77.       ambient 0.2
  78.       diffuse 0.6
  79.       phong 1.0
  80.       phong_size 20
  81.    }
  82. }
  83.  
  84. light_source {<100, 120, 40> colour White}
  85.