// Inside the box
// 9/2016 Christian Perle

global_settings { max_trace_level 7 }

// place camera and light sources _inside_ the box object
camera {
	location <-.24, .20, -1>
	direction 1.6*z
	look_at 1*z
	rotate 11*z
}

light_source { <0, 0, 0> color rgb <0, .5, 0> }
light_source { <.1, -.1, 0> color rgb <.5, 0, .5> }
light_source { <-.1, .1, 0> color rgb <0, 0, .5> }

#declare RotBox = box {
	-.5, .5
	rotate 45*x
	rotate 35.26438968*z
}

merge {
	object { RotBox scale .9 }
	object { RotBox translate <1, 0, 0> }
	object { RotBox translate <-1, 0, 0> }
	object { RotBox translate <0, 1, 0> }
	object { RotBox translate <0, -1, 0> }
	hollow
	pigment { rgb .3 }
	finish {
		reflection 1
		phong 1
		phong_size 20
	}
	normal {
		gradient x+y .01
		scale .2
	}
	rotate 90*x
}