Design an algorithm for rendering objects using colors or shaders and try to use a ubo for storing model matrices