Finished implementing environment rendering.