add some missing pieces from the 2D renderer to the 3D one

Change-Id: I9933a429f42f8a350a88aa77514f934560ed58f3