Optimized binding of multiple matrices to shaders