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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Colored reflection example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8.  
  9. camera {
  10.   location <0.5, 1.8, -4>
  11.   right 4/3*x
  12.   up y
  13.   look_at <0, 1.5, 0>
  14.   angle 70
  15. }
  16.  
  17. box { <-5, 0, -5>, <5, 3, 5>
  18.   pigment { color White }
  19. }
  20.  
  21. polygon {
  22.   4, <0, 0>, <1, 0>, <1, 1>, <0, 1>
  23.   scale <6, 2.5, 1>
  24.   translate <-3, 0.25, 4.999>
  25.   finish { ambient 0.2 diffuse 0 phong 1 phong_size 100 reflection 0.95 }
  26.   pigment { color White }
  27. }
  28.  
  29. /* Spheres without reflection color (standard) on left side. */
  30.  
  31. sphere { <-1, 0.5, 0>, 0.4
  32.   finish { diffuse 0 reflection 0.9 }
  33.   pigment { color rgb<0.2, 0.2, 1> }
  34. }
  35.  
  36. sphere { <-1, 1.5, 0>, 0.4
  37.   finish { diffuse 0 reflection 0.9 }
  38.   pigment { color rgb<0.2, 1, 0.2> }
  39. }
  40.  
  41. sphere { <-1, 2.5, 0>, 0.4
  42.   finish { diffuse 0 reflection 0.9 }
  43.   pigment { color rgb<1, 0.2, 0.2> }
  44. }
  45.  
  46. /* Spheres with reflection color on right side. */
  47.  
  48. sphere { <1, 0.5, 0>, 0.4
  49.   finish { diffuse 0 reflection rgb<0.2, 0.2, 0.9> }
  50.   pigment { color rgb<0.2, 0.2, 1> }
  51. }
  52.  
  53. sphere { <1, 1.5, 0>, 0.4
  54.   finish { diffuse 0 reflection rgb<0.2, 0.9, 0.2> }
  55.   pigment { color rgb<0.2, 1, 0.2> }
  56. }
  57.  
  58. sphere { <1, 2.5, 0>, 0.4
  59.   finish { diffuse 0 reflection rgb<0.9, 0.2, 0.2> }
  60.   pigment { color rgb<1, 0.2, 0.2> }
  61. }
  62.  
  63. light_source { <0, 2.9, 0> color Gray30 }
  64. light_source { <-4, 2.9, -4> color Gray30 }
  65. light_source { < 4, 2.9, -4> color Gray30 }
  66.  
  67.