// Exemplo de arquivo de descricao de cena para POV-ray
// Last edited on 2000-09-21 20:06:05 by stolfi

background{ color rgb < 0.00, 0.03, 0.15 > }

light_source {
  < 4.00, 10.00, 50.00 >
  color rgb < 1.00, 1.00, 1.00 >
} 

camera {
  location  <  8.00, 4.00, 2.00 >
  right     < -1.20, 0.00, 0.00 >
  up        <  0.00, 0.00, 0.90 >
  sky       <  0.00, 0.00, 1.00 >
  look_at   <  0.00, 0.00, 0.00 >
} 

#declare raio = 2.000;

#declare tinta_A = 
  texture {
    pigment { color rgb < 0.10, 0.80, 1.00 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }

#declare tinta_B = 
  texture {
    pigment { color rgb < 1.00, 0.80, 0.10 > }
    finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 }
  }
  
#declare bola =
  sphere {
    < 0.00, 0.00, 0.00 >, 2.00 
    texture { tinta_A }
  }
  
#declare furo1 = 
  cylinder {
    < -2.00, -2.00, -2.00 >,
    < +2.00, +2.00, +2.00 >,
    0.75
    texture { tinta_B }
  }
  
#declare furo2 = 
  cylinder {
    < -2.00, -2.00, +2.00 >,
    < +2.00, +2.00, -2.00 >,
    0.75
    texture { tinta_B }
  }
  
// Aqui está a cena, finalmente:

difference { 
  object { bola } 
  union {
    object { furo1 }
    object { furo2 }
  }
}