//Tiago Saad - 971717
//Feira Agricola

#include "colors.inc"
#include "textures.inc"

background { color red 1 green 1 blue 1 }

camera{
	location<10, 10, 10>
	look_at<0, 5, 5>
}

light_source{
	<10, 20, -10>
	color White
}

light_source{
	<0, -1, 9>
	color White
}

#declare planta=
blob{
	threshold 0.5
	sphere{ <0, 8, 3>, 2, 5 texture{Blood_Marble} }	//1
	sphere{ <0, 6, 5>, 2, 3 texture{Blood_Marble} }	//2
	sphere{ <0, 4, 6>, 2, 2 texture{Blood_Marble} }	//3
	sphere{ <0, 2, 5>, 2, 1 texture{Blood_Marble} }	//4
	sphere{ <0, 0, 4>, 1, 1 texture{Blood_Marble} }	//5
	finish{ phong 1 }
}


difference{
	cylinder{		// torinha
		<0,-1,0>
		<0,-1,6>
		1
		texture{Sandalwood}
	}
	cylinder{
		<0,-1,-1>
		<0,-1,7>
		.7
		texture{Sandalwood}
	}

}

object { planta
	translate<0,0,-2>
}

object { planta 
	scale <.5, .5, .5>
	translate <0,0,-1>
}

object { planta
	scale <.5, .5, .5>
	rotate <0, 180, 0>
	translate <.2, 0, 8>
}

plane{
	y,
	-2
	pigment { color rgb <.9, .9, .9>}
}