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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Weighted averaged textures 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 {  y,-1.01  pigment {checker Yellow,White}}
  15.  
  16. plane {  z, 4.01  pigment {checker Yellow,White}}
  17.  
  18. light_source { <300, 500, -500> color Gray65}
  19. light_source { <-50,  10, -500> color Gray65}
  20.  
  21. #declare Thing = plane{z,0.1 clipped_by{box{-2,2}}}
  22.  
  23.  
  24. object{Thing
  25.   texture {
  26.     average
  27.     texture_map {
  28.       [pigment{Jade} finish{ambient .2}]
  29.       [pigment{radial frequency 10} finish{phong 1} rotate x*90]
  30.     }
  31.   }
  32.   translate <-3,5.5,0>
  33. }
  34.  
  35. object{Thing
  36.   texture {
  37.     average
  38.     texture_map {
  39.       [pigment{DMFWood4} scale 3 rotate x*80]
  40.       [pigment{radial frequency 10} finish{phong 1} rotate x*90]
  41.     }
  42.   }
  43.   translate <3,5.5,0>
  44. }
  45.  
  46. object{Thing
  47.   texture {
  48.     average
  49.     texture_map {
  50.       [3.0 pigment{Jade} finish{ambient .2}]
  51.       [1.0 pigment{radial frequency 10} finish{phong 1} rotate x*90]
  52.     }
  53.   }
  54.   translate <-3,1,0>
  55. }
  56.  
  57. object{Thing
  58.   texture {
  59.     average
  60.     texture_map {
  61.       [pigment{radial frequency 10} finish{phong 1} rotate x*90 translate < 1, 1,0>]
  62.       [pigment{radial frequency 10} finish{phong 1} rotate x*90 translate <-1,-1,0>]
  63.     }
  64.   }
  65.   translate <3,1,0>
  66. }
  67.  
  68.