home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / pnbsf / bubble.inc next >
Text File  |  1993-06-18  |  1KB  |  27 lines

  1. #declare BUBBLE =
  2. object {
  3.   difference {
  4.     sphere {<0 0 0> .5}
  5.     sphere {<0 0 0> 0.499}  // very very very thin bubble wall
  6.   }
  7.   texture{
  8.     spotted           // for the oily swirl on the surface.
  9.     turbulence 1.5    // mix it up pretty good.
  10.     ior 1.15           // bend the light just ever so slightly.
  11.     reflection 0.1   // wierd huh?...
  12.     refraction 0.9
  13.     phong 0.2         // make sure the phong is not overpowering.
  14.     phong_size 20     // the phong mostly exposes the outline of the bubble.
  15.     colour_map {      // here's the red/blue/green oily swirl color map.
  16.       [0.000 0.333   colour red  1.000  green  0.970  blue  0.970  alpha  1
  17.                      colour red  0.970  green  0.970  blue  1.000  alpha  1]
  18.       [0.333 0.666   colour red  0.970  green  0.970  blue  1.000  alpha  1
  19.                      colour red  0.970  green  1.000  blue  0.970  alpha  1]
  20.       [0.666 1.000   colour red  0.970  green  1.000  blue  0.970  alpha  1
  21.                      colour red  1.000  green  0.970  blue  0.970  alpha  1] 
  22.     }
  23.   }
  24. bounded_by { sphere { <0 0 0> 0.5} }
  25. }
  26.  
  27.