Improved performance in procedural texturing fragment shader