Added rendering to texture arrays and material manager for OpenGL