How to get a global shader variable?

The subject of setting a global shader variable is well covered, but can’t find how to get it?