Unity3D内置着色器完成图片变灰色的效果

在Shader上加入

 

 float gray = dot(color.rgb, float3(0.299, 0.587, 0.114));     color.rgb = float3(gray, gray, gray);