* Do some range checking for the shadow shader