Here's today's bonus patch showing how to do reflection and refraction
with shaders. The shader implements a basic Fresnel model which is
controllable via bias, scale and falloff parameters. These control
the ratio of the reflection and refraction colors based on surface
orientation to the camera. The texture lookup is done using a
sphere-map so the quality is not as good as it would be with a cube
map. Still, it's quite nice.