add BlendEffectBox
This commit is contained in:
1 parent
f6da5e1101
commit
6530a711ee
17 files changed
+195
-500
No files matched your search
@@ -1,15 +0,0 @@
|
||||
sampler2D background : register(s0);
|
||||
sampler2D foreground : register(s1);
|
||||
|
||||
float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
{
|
||||
float4 b = tex2D(background, uv);
|
||||
float4 f = tex2D(foreground, uv);
|
||||
float4 o = b;
|
||||
|
||||
f.rgb *= f.a;
|
||||
b.rgb *= b.a;
|
||||
o.rgb = f.rgb * b.rgb + f.rgb * (1 - b.a) + b.rgb * (1 - f.a);
|
||||
|
||||
return o;
|
||||
}
|
||||
Binary file not shown.
Reference in new issue
Block a user