Added instanced rendering code