#include "colors.inc"
#include "woods.inc"

background{White}

camera {
	location 1.0 * <0, -3, -5>
	right	 < 1.2, 0.00, 0.00 >
	up	 < 0.00, 0.00, 0.4 >
	sky	 < 0.00, 0.00, 1.00 >
	look_at  < 0.00, 0.00, 0.00 >
}

light_source { <2, -5, 0> color White }
light_source { <-2, -5, 0> color White }

	plane { <0, 1, 0>, 0
		texture {T_Wood1}
	}

#declare estante =
union {

	box {
		< 0,-.90,-1>,
		< .75,-.95,0>
	}

	box {
		< 0,-.10,-1>,
		< .75,-.15,0>
	}

	cylinder { <0,0,-1>, <0,-1,-1>, .05 }
	cylinder { <0,0,0>, <0,-1,0>, .05 }
	cylinder { <.75,0,-1>, <.75,-1,-1>, .05 }
	cylinder { <.75,0,0>, <.75,-1,0>, .05 }

	#declare quadrado =
	box {
		<0,0,0>,
		<.25,.25,.25>
		pigment {Yellow}
	}

	#declare conica =
	cone {
		<0,0,0>, 0
		<0,.25,0>, .25
		pigment {Red}
	}

	#declare esfera =
	sphere {
		<0,0,0>
		.25
		pigment {Blue}
	}
	
	object {quadrado translate < .35,-1.2,-.5>}
	object {conica translate < .25,-1.2, -.7>}
	object {esfera translate < .45,-.40,-.5>}
		
	texture {
		pigment {Gray}
		finish {
			ambient 0.05 diffuse 0.05
			reflection Gray
			specular 0.20 roughness 0.05
		}
	}
}

#declare i = -2.5;
#while (i < 3)
	object {estante translate <i,0,0>}
	#declare i = i + 2;
#end