// Last edited on DATE TIME by USER
// Processed by remove-cam-lights

#include "colors.inc"
#include "golds.inc"
 
 

background { color rgb<0.2, 0.4, 0.8>  }  
  
 
 

 

#declare textura_branco = 
  texture { pigment { White } } 
  
#declare textura_face =  
  texture { 
      pigment { 
        image_map{jpeg "face.jpg"} 
      } 
      scale <16,16,16>
      translate<8,-6,0>
    }

#macro cabeca(altura, largura)
  union{
    difference{
        sphere{
                < 0.00, 0.00, 0.00 >, largura
        }
        box{
                < 10.00, 0.00, 10.00 >, < -10.00, 10.00, -10.00 >
        }
    }
    
    difference{
        sphere{
                < 0.00, 0.00, 0.00 >, largura scale < 1.00, altura, 1.00 >
        }
        box{
                < 10.00, 0.00, 10.00 >, < -10.00, -10.00 * altura, -10.00 >
        }
    }
  }
#end
  
#macro orelha(raio, largura)
  object{
    cylinder {
      < 0, 0, 0 >,
      < 0, 0, largura >,
      raio
    }
  }
#end

#macro olho(raio)
  object{
    sphere{
      <0 ,0 ,0>,raio
    }
  }
#end

#macro face(altura,largura,OrelhaV,OlhoV,OlhoR,textura)
  union{
    
    object{ 
      cabeca(altura,largura)
    }
    
    object{
      orelha(largura*0.2,largura*0.1)
      translate<largura-(OrelhaV/4),(altura/2)+OrelhaV,0>
    }
    object{
      orelha(largura*0.2,largura*0.1)
      translate<-largura+(OrelhaV/4),(altura/2)+OrelhaV,0>
    }
    
    object{ 
      olho(largura*0.2) 
      translate<0,(altura/2.0)+OlhoV,-largura+(largura/6)>
      rotate<0,-OlhoR,0,> 
    }
    object{ 
      olho(largura*0.2) 
      translate<0,(altura/2.0)+OlhoV,-largura+(largura/6)>
      rotate<0,+OlhoR,0,> 
    }
              
    
    texture { textura }    
  } 
#end

union{
    object{ face( 1.20, 6.00, 2,2,16, textura_face ) }  
}

  

// Original camera parameters:
// #local cam_ctr = <0,0,0>
// #local cam_vec = <0,10,-65>
// #local cam_sky = y

#include "camlight.inc"
camlight(<0,0,0>,<10,10,10>,20.0,y,1.0)