在Shader上加入

 

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

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

相关文章:

  • 2021-12-17
  • 2021-11-08
  • 2021-09-05
  • 2022-12-23
  • 2021-04-11
  • 2022-12-23
  • 2021-10-27
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案