implemented frustum culling