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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "shapes.inc"
  9. #include "textures.inc"
  10.  
  11. camera {
  12.    location <20.0, 10.0, -100.0>
  13.    direction <0, 0, 1>    
  14.    up <0.0, 1.0, 0.0>
  15.    right <1.0, 0.0, 0.0>
  16.    look_at <0.0,0.0, 0.0>
  17. }
  18.  
  19. light_source {
  20.   <-50, -30, -40>
  21.   colour Red
  22.   spotlight
  23.   point_at <0, 0, 0>
  24.   radius 20
  25.   falloff 25
  26. }
  27.  
  28. light_source { 
  29.   <30, -50, -20>
  30.   colour Green
  31.   spotlight
  32.   point_at <0, 0, 0>
  33.   radius 20
  34.   falloff 25
  35. }
  36.  
  37. light_source { 
  38.   <-10, 40, 30>
  39.   colour Blue
  40.   spotlight
  41.   point_at <0, 0, 0>
  42.   radius 20
  43.   falloff 25
  44. }
  45.  
  46. #declare Texture = texture {
  47.   pigment { colour Clear }
  48.   halo {
  49.     dust
  50.     dust_type 2
  51.     constant
  52.     spherical_mapping
  53.     max_value 1.0
  54.                 
  55.     colour_map {
  56.       [ 0 color rgbt <1, 1, 1, 1.0> ]
  57.       [ 1 color rgbt <1, 1, 1, 0.8> ]
  58.     } 
  59.  
  60.     samples 100
  61.     aa_level 5
  62.     aa_threshold 0.1
  63.     jitter 0.8
  64.   }  
  65.  
  66.  
  67. object { Cube texture { Texture } scale 52 hollow }
  68.  
  69. object { Sphere texture { Red_Marble } scale 15 hollow }
  70.  
  71.