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

#include "camlight.inc"
#include "colors.inc"
#include "stones.inc"

background{ color rgb < 0.75, 0.80, 0.85 > }

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

#declare tx_fosca =
  texture{
    pigment{ color rgb < 1.00, 0.80, 0.10 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_vermelho =
  texture{
    pigment{ color rgb < 1.00, 0.00, 0.00 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_cinza =
  texture{
    pigment{ color rgb < 0.80, 0.80, 0.80 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_amarelo =
  texture{
    pigment{ color rgb < 0.80, 0.80, 0.00 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_espelho =
  texture{
    pigment{ color rgb < 1.00, 0.85, 0.30 > }
    finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 }
  }

#declare tx_vidro =
  texture{
    pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.70 }
    finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 }
  }

#declare tx_xadrez =
  texture{
    pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
  }

#declare tx_granito =
  texture{
    pigment{
      granite
    }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
}

#declare tx_marmore =
  texture{
    pigment{
      marble
    }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
}

#macro texto(tx, fonte, profundidade, espacamento, textura)
   text {
      ttf
      fonte
      tx
      profundidade, espacamento
      texture{textura}
      rotate 90*x+180*z
   }
#end

#declare texto_fp = merge {
   object{texto("Fernando", "arial.ttf", .5, 0, tx_amarelo) translate<0,0,1>}
   object{texto("Pessoa", "arial.ttf", .5, 0, tx_vermelho) translate -.5*x}
}

#declare fp = merge {
   object {texto_fp translate 1.5*z+2*x}
   box{<-4,-2,0>,<4,2,1> texture{tx_marmore}}
}

#declare texto_cl = merge {
   object{texto("Clarice", "verdana.ttf", .5, 0, tx_cinza) translate<0,0,1>}
   object{texto("Lispector", "verdana.ttf", .5, 0, tx_fosca) translate .5*x}
}

#declare cl = merge {
   object {texto_cl translate 1.5*z+2*x}
   cylinder{<0,0,0>,<0,0,1> 4 texture{tx_granito}}
}

#declare texto_saram = object {
   texto("Saramago", "verdana.ttf", .5, 0, tx_granito) translate<0,0,1>
}

#declare saram_cone = cone{
   <0,0,0>, 1 ,<0,0,1> 0
   pigment {
      julia <0.353, 0.288>, 30
      interior 1, 1
      color_map {
         [0 rgb 0]
         [0.2 rgb x]
         [0.4 rgb x+y]
         [1 rgb 1]
         [1 rgb 0]
      }
   }
}

#declare saram = merge {
   object {texto_saram translate <2,5,1.5>}
   object {saram_cone translate -2*x}
   object {saram_cone translate 2*x}
}

#declare chao =
  box{ <-20,-20,-1>, <+20,+20,0> }

#include "eixos.inc"

union{
   object{chao texture{tx_xadrez}}
   object{fp translate-8*y rotate 45*z}
   object{cl translate -8*y rotate -45*z}
   object{saram}

}

#declare centro_cena = < -2.00, 0.00, 1.00 >;
#declare raio_cena = 20.0;
#declare dir_camera = < 0.00, 20.00, 5.00 >;
#declare dist_camera = 25.0;
#declare intens_luz = 1.00;
camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)