home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / p / povray3a / POV3Demo / Lights / pov / FadeLt < prev    next >
Text File  |  1995-11-08  |  2KB  |  74 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Chris Young.
  3. // Light distance attenuation example
  4.  
  5. #version 3.0
  6. global_settings { assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. #declare Dist=27.5
  11.  
  12. camera{location <0,30,-180> direction 3*z look_at -y*5}
  13.  
  14. #default {finish{ambient .2}}
  15.  
  16. union {
  17.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  18.   light_source{
  19.      0 White spotlight radius 15  falloff 18 point_at -y
  20.      area_light x/2,z/2,4,4 adaptive 1 jitter
  21.      fade_distance Dist fade_power 0
  22.   }
  23.   translate <-30,20,0>
  24. }
  25.  
  26. union {
  27.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  28.   light_source{
  29.      0 White spotlight radius 15  falloff 18 point_at -y
  30.      area_light x/2,z/2,4,4 adaptive 1 jitter
  31.      fade_distance Dist fade_power 1
  32.   }
  33.   translate <-10,20,0>
  34. }
  35. union {
  36.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  37.   light_source{
  38.      0 White spotlight radius 15  falloff 18 point_at -y
  39.      area_light x/2,z/2,4,4 adaptive 1 jitter
  40.      fade_distance Dist fade_power 2
  41.   }
  42.   translate <10,20,0>
  43. }
  44.  
  45. union {
  46.   cone {-y*6,2,y,.5 open pigment{White*.85}}
  47.   light_source{
  48.      0 White spotlight radius 15  falloff 18 point_at -y
  49.      area_light x/2,z/2,4,4 adaptive 1 jitter
  50.      fade_distance Dist fade_power 3
  51.   }
  52.   translate <30,20,0>
  53. }
  54.  
  55. //plane {z,2 pigment{White}}
  56. plane {y,-22 pigment{White}}
  57.  
  58. sphere{<-30-6,-20,-4>,2 pigment{White} finish{phong 1}}
  59. sphere{<-10-6,-20,-4>,2 pigment{White} finish{phong 1}}
  60. sphere{< 10-6,-20,-4>,2 pigment{White} finish{phong 1}}
  61. sphere{< 30-6,-20,-4>,2 pigment{White} finish{phong 1}}
  62.  
  63. sphere{<-30-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  64. sphere{<-10-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  65. sphere{< 10-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  66. sphere{< 30-2,-7.5,-1>,2 pigment{White} finish{phong 1}}
  67.  
  68. sphere{<-30+2,5,0>,2 pigment{White} finish{phong 1}}
  69. sphere{<-10+2,5,0>,2 pigment{White} finish{phong 1}}
  70. sphere{< 10+2,5,0>,2 pigment{White} finish{phong 1}}
  71. sphere{< 30+2,5,0>,2 pigment{White} finish{phong 1}}
  72.  
  73. light_source {<-100,100,-250> White*.1 }
  74.