#include "colors.inc" #include "stones.inc" #declare units_feet = 12; // perspective (default) camera #declare c_loc = < -4.5, 8.0, -4.0>; camera { location c_loc look_at <-4.5, 0.0, -2> } // create a regular point light source light_source { c_loc // light's position (translated below) color rgb <1,1,1> // light's color } #declare floor_width = 3; #declare floor_depth = 3; #declare x_count = 0; #declare z_count = 0; #declare s1 = seed(2883); #declare tile_floor = union{ #while (x_count < floor_width ) #while (z_count < floor_depth ) superellipsoid { <.02,.1> rotate 90*x translate <-1,0,-1> scale <.5,.05,.5> scale units_feet translate <-x_count*units_feet,0,-z_count*units_feet> texture { pigment { color rgb 0.6 } finish { ambient 0.0 diffuse 1.0 } } } #declare z_count = z_count+1; #end #declare z_count=0; #declare x_count=x_count+1; #end translate 6*z } object { tile_floor scale <0.25, 1, 0.25> }