Depends on the sort of Mac you have but you can uncheck Automatically Reduce Brightness Before Sleeping in the Options pane of the Energy Saver preferences. You may also want to turn off the display sleeping in the Sleep pane of this same System Preference. 🙂