#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>; #declare floater = sphere { <0,.5,0>, 1 } 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 .4 } #declare floater_red = texture { pigment { color tagger_red filter .75 } finish { floater_finish } } #declare floater_green = texture { pigment { color tagger_green filter .65 } finish { floater_finish } } #declare floater_count = 50; #declare Locations = seed(1); #declare Colors = seed(2); #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 texture { #if (rand(Colors) > .5) floater_red #else floater_green #end } translate } #declare floater_count = floater_count - 1; #end