Shader optimizations

Removed redundancies and condensed some prorotype code for a substantial
FPS speedup.