Shaders optimization