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

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