simplify shaders in text-viewer demo