hair shader updated to make it work with the custom fog function