moved creation of screenOverlay material to prevent unnecessary allocations