clean up the messy shader code specification

vastly deduplicate shader creation code

slightly improve error handling

resolve several minor TODOs

(0) -100 -30 -10 -4 +4 +10 +30 tip

mercurial