Get light level at point

I can’t remember if there was an API function to do this. Basically light level (including dynamic lights preferably) at certain point in map.