#declare tagger_red = <.8,.1,.1>; #declare tagger_green = <.1,.8,.1>; #declare camera_location = <0,0,-10>; #declare light_location = camera_location + <0,10,-20>; camera { location camera_location look_at <0,0,0> } light_source { light_location color <1,1,1> } plane { y, -1 pigment { checker color tagger_red color tagger_green } } #declare floater_finish = finish { phong .5 phong_size 140 ambient .8 } #declare Colors = seed(2); #macro floater() sphere { #local floater_red = rand(Colors); #local floater_green = rand(Colors); #local floater_blue = rand(Colors); <0,.5,0>,1 texture { pigment { color rgbf } finish { floater_finish } } } #end #declare floater_count = 50; #declare Locations = seed(1); #while (floater_count > 0) #declare x_loc = rand(Locations)*20-10; #declare y_loc = rand(Locations)*5-1; #declare z_loc = rand(Locations)*10-3; object { floater() translate } #declare floater_count = floater_count - 1; #end