TODO: calc projection for UI rendering