Shader updated to work with Mac