added support for more objects than gl uniforms