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

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Iridescence wavelength example
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. #include "shapes.inc"
  10.  
  11. // Vary the iridescence wavelengths for custom effects
  12. global_settings {
  13. //    irid_wavelength rgb <.25, .18, .14>   // POV-Ray default
  14. //    irid_wavelength rgb <.70, .52, .48>
  15.     irid_wavelength rgb <.10, .20, .40>
  16. }
  17.  
  18. camera {
  19.   location <0, 1.5, -3>
  20.   direction <0, 0, 1.5>
  21.   right <1.3333, 0, 0>
  22.   look_at <0, 0, 0>
  23. }
  24. light_source { < 15, 15, -25> colour Gray90 }
  25.  
  26. plane { y,0
  27.     pigment { Gray45 }
  28.     finish {
  29.         ambient 0.2
  30.         diffuse 0.2
  31.         irid {0.5          // contribution to overall color
  32.           thickness 1.2    // affects frequency, or "busy-ness"
  33.           turbulence 1     // Variance in film thickness
  34.         }
  35.     }
  36.  
  37. }
  38.  
  39. sphere { <0,0, 0>, 0.45
  40.     pigment { White }
  41.     finish {
  42.         Shiny
  43.         diffuse 0.2
  44.         irid {0.25 thickness 1 turbulence 0.75}
  45.     }
  46.     translate <-1, 0.45, 0>
  47. }
  48. sphere { <0,0, 0>, 0.45
  49.     pigment { White }
  50.     finish {
  51.         Shiny
  52.         diffuse 0.2
  53.         irid {0.5 thickness 1 turbulence 0.75}
  54.     }
  55.     translate <0, 0.45, 0>
  56. }
  57. sphere { <0,0, 0>, 0.45
  58.     pigment { White }
  59.     finish {
  60.         Shiny
  61.         diffuse 0.2
  62.         irid  {0.75 thickness 1 turbulence 0.75}
  63.     }
  64.     translate <1, 0.45, 0>
  65. }
  66.  
  67.