Black and White, Like in the Old Times 黑白化
红不拉叽的茶壶变成黑不溜秋的了!
Intensity = 0.299*col.r + 0.587*col.g + 0.184*col.b;
或者
Intensity = dot(col,float4(0.299,0.587,0.184,0));
但是下面的效率更高。
四维向量点积

you will be invited to implement a variation of this black and white shader called Sepia.
variation [ˌveəriˈeiʃən]
n.变化,变动;变体,变种;变奏(曲)
sepia ['si:pjə]
n. 乌贼,乌贼的墨,颜料
a. 乌贼墨色的,使用乌贼墨颜料的
2008-11-27
还可以采用矩阵的方式

返回[0.299*color.r + 0.299*color.g + 0.299*color.b, 0.587*color.r + 0.587*color.g + 0.587*color.b, 0.184*color.r + 0.184*color.g + 0.184*color.b, color.a]
这样子就是黑白的?
Thermal Imaging

把color_filter的值改下就行了
posted on 2008-11-13 14:22
七星重剑 阅读(1583)
评论(3) 编辑 收藏 引用 所属分类:
Game Graphics 、
HLSL&ShaderMonkey