Made shade function const