material now gets the complete incident ray instead of just the direction (this will be used e.g. by the GlassMaterial to color the glass depending on distance)
fixed alpha bug in color
some work on glassmaterial (there are still uncountable errors in it :))