//Ejemplo de prueba para una escena vista 3D
//Por: Mario H Tiburcio Z

#include "colors.inc"
#include "librerias.inc"

camera {
  location <6,6,-6>
  look_at <0,0,0>
}

light_source {<4,5,-6> color White}
/*box{
  <0,0,0>,<1,1,1>
  pigment {color Blue}
  scale<3,0.2,1>
  rotate<0,90,0>
}*/

#declare figura=union{

triangle{
 <0,0,0>,
 <0,2,0>,
 <2,0,0>
 pigment { color Red}
}

triangle{
 <0,0,1>,
 <0,2,1>,
 <2,0,1>
 pigment { color Blue}
}

triangle{
 <0,2,0>,
 <2,0,0>,
 <2,0,1>
 pigment { color Yellow}
}

triangle{
 <0,2,0>,
 <0,2,1>,
 <2,0,1>
 pigment { color Yellow}
}
}

figura

object{
 figura
 matrix<
 0,0,-2,
 0,0.5,0,
 -2,0,0,
 0,0,-1
>
}

plane  { y,0 pigment {checker Black White }}
ejes3D

