Move projection matrix uniform set outside the loop