Sort of fixed the plane rendering, more changes needed.