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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Pigment_map example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9.  
  10. camera { 
  11.   location <0,3,-31>
  12.   direction 3*z
  13.  
  14. plane {
  15.   y, -1.01
  16.   pigment {checker White, Magenta}
  17. }
  18.  
  19. plane {
  20.   z, 3.01
  21.   pigment {checker White, Magenta}
  22. }
  23.  
  24. light_source { <300, 500, -500> color Gray65}
  25. light_source { <-50,  10, -500> color Gray65}
  26.  
  27. box{<-2,-2,0>,<2,2,1>
  28.   pigment {
  29.     gradient x
  30.     pigment_map{
  31.       [0.2 Jade]
  32.       [0.4 radial frequency 10 rotate x*90]
  33.       [0.6 radial frequency 10 rotate x*90]
  34.       [0.8 DMFWood4 scale 3 rotate x*80]
  35.     }
  36.   }
  37.   translate <-3,5.50>
  38. }
  39.  
  40. box{<-2,-2,0>,<2,2,1>
  41.   pigment {
  42.     wood
  43.     pigment_map{
  44.       [0.2 Jade]
  45.       [0.4 radial frequency 10 rotate x*90]
  46.       [0.6 radial frequency 10 rotate x*90]
  47.       [0.8 DMFWood4 scale 3 rotate x*80]
  48.     }
  49.   }
  50.   translate <3,5.50>
  51. }
  52. box{<-2,-2,0>,<2,2,1>
  53.   pigment {
  54.     checker
  55.       pigment { Jade }
  56.       pigment { radial frequency 10 rotate x*90}
  57.   }
  58.   translate <-3,1,0>
  59. }
  60. box{<-2,-2,0>,<2,2,1>
  61.   pigment {
  62.     radial frequency 6 
  63.     pigment_map{
  64.       [0.2 Jade]
  65.       [0.4 radial frequency 10]
  66.       [0.6 radial frequency 10]
  67.       [0.8 DMFWood4 scale 3 rotate x*10]
  68.     }
  69.     rotate x*90
  70.   }
  71.   translate <3,1,0>
  72. }
  73.