This is what gets called every frame in updating the 3D renderer.