Continuing with the renderer (a lot of material is being copied from minecraft src with minor alteration)