// REFRECT / bubbles in the water '05.04 // By Tsutomu HIGO URL: http://www.asahi-net.or.jp/~nj2t-hg/ #version 3.6; global_settings { max_trace_level 12 assumed_gamma 2.2 } #declare R1 = seed(5); camera { location <0, 0, -4.0> angle 90 look_at <0, 0, 0> } union { box { <-5, -1, -5> < 5, 2, 5> texture { pigment { color rgb <0, 0, 0> } finish { reflection 0.9 ambient 0 phong 0 brilliance 0 diffuse 0 } } } #declare Ct = 0; #while (Ct < 30) sphere { <10*rand(R1)-5, 2*rand(R1)-1, 10*rand(R1)-5> 0.1 texture { pigment { color rgb <0.1+0.1*rand(R1), 0.3+0.2*rand(R1), 0.8+0.2*rand(R1)> } finish { reflection 0 ambient 1.8 phong 1 brilliance 1 diffuse 1 } } } #declare Ct = Ct+1; #end plane { y, -1 texture { pigment { color rgb <0, 0, 0> } finish { reflection 0.5 ambient 0 phong 1 diffuse 0.5 brilliance 1 } normal { ripples 1 scale 15 frequency 0.3 rotate y*30 translate z*5 turbulence 0.2 } } no_shadow } translate <0, 0, 0> no_shadow }