#include "colors.inc" #include "textures.inc" camera { location <1.13, 2.5, 2.1> look_at <0, 0, 0> right x*image_width/image_height } background {White} #declare bottom = 0.7; #declare top = 1.0; #declare theta = 40.0; #declare vmargin = 0.015; #declare hmargin = 0.010; #declare mypigments = array[8] { pigment{Red}, pigment{DarkPurple}, pigment{Blue}, pigment{SkyBlue}, pigment{ForestGreen}, pigment{YellowGreen}, pigment{Yellow}, pigment{Orange} }; sphere { <0,0,0>,0.97 texture{pigment{Black}} } #declare i=-1; #while(i<2) #declare bottom = sin((i+vmargin)*pi/4); #declare top = sin((i+1-vmargin)*pi/4); #declare j=0; #while(j<8) #declare theta = j*45; intersection { intersection { box { , <1,1,1> } box { , <1,1,1> rotate -45*y } rotate theta*y } box { <-1, bottom, -1>, <1, top, 1> } sphere { <0, 0, 0>, 1 } texture{ pigment{mypigments[j]} normal { bumps 0.1 scale 0.002 } finish { ambient 0.5 diffuse 0.5 phong 0.3 } } } #declare j=j+1; #end #declare i=i+1; #end light_source { <-2, 4, 4> color rgb White //area_light <1, 0, 0>, <0, 0, 1>, 5, 5 //jitter }