small GLSL refactorings