More additions for direct3d rendering