#include "colors.inc" #include "glass.inc" #include "skies.inc" #declare cup = union { difference { difference { union { sphere { // center <0,0,0> // radius 1 } sphere { -y 0.2 } } sphere { <0,0,0> 0.98 } } plane { -y, -.5 } } intersection { plane { y, 0.125 } sphere { 0 0.979 } texture { T_Winebottle_Glass } } light_source { -.125*y color White } } #declare wineglass = union { object { cup translate y } cylinder { -y 0 0.1 } difference { cylinder { -y .8*-y .8 } torus { 1 .9 scale <1,1/4.5,1> translate -y*.8 } } texture { T_Glass3 } translate y }