cleaned up rescaling in shader