Further work towards dynamic shadows.

Something's screwy with the tex_shader_w_shadows shaders - they don't
link on my machine, but do on Cyclops, but don't output anything on
cyclops.