Shader Forge using (a) the effect grayed

xzhuan原创稿件,转载请注明出处!

一、实现彩图置灰效果
原理:为图片的RGB分别乘以权重然后加起来得到一个灰色值,并且将这个灰色值作为新的RGB值。
变灰RGB的权重会固定为(R:0.299 G:0.587,B:0.114)

实现如下
9002416-765cc34b82c56a49.png

Reproduced in: https: //www.jianshu.com/p/d4794746edf2

Guess you like

Origin blog.csdn.net/weixin_33910137/article/details/91149443