shader update for osx/ios