global_settings { assumed_gamma 1.5 max_intersections 4 } default { pigment { rgb 0 } } background { rgb 1 } #include "carpet.inc" //Usage: //Carpet (Base_Object, level of recursion) //Carpet2(Base_Object, level of recursion, Use Color) //Best viewed with aspect-ratio 1:1 #declare Use_Macro1=false; #if(Use_Macro1) object { Carpet( object{ lvl0 } , 1 ) } #else object { Carpet2( object{ lvl2 } //dont use lvl0 with this one! , 2 , false ) } #end camera { orthographic location <0.5,1,0.5> right <1,0,0> up <0,1,0> look_at <0.5,0,0.5> } light_source { y*1000 rgb 1 }