Unity3D內置着色器完成圖片變灰色的效果

在Shader上加入    float gray = dot(color.rgb, float3(0.299, 0.587, 0.114));     color.rgb = float3(gray, gray, gray);
相關文章
相關標籤/搜索