add fx files

This commit is contained in:
NaBian committed 2019-12-19 00:15:31 +08:00
1 parent e63fede6d3
commit 0b79d187ac
3 files changed
+27 -2

No files matched your search

@@ -0,0 +1,10 @@
float4 main(float2 uv : TEXCOORD) : COLOR
{
float4 color = tex2D(implicitInput, uv);
float4 complement;
complement.rgb = color.a - color.rgb;
complement.a = color.a;
return complement;
}
@@ -0,0 +1,15 @@
sampler2D implicitInput : register(s0);
float scale : register(c0);
float4 main(float2 uv : TEXCOORD) : COLOR
{
float4 color = tex2D(implicitInput, uv);
float4 complement;
float intensity = (color.r + color.g + color.b) / 3;
complement.rgb = color.rgb * (1 - scale) + intensity * scale;
complement.a = color.a;
return complement;
}