Ctor taking ShapeRenderer.