add MultiplyBlendEffect
This commit is contained in:
1 parent
24d323c09d
commit
f6da5e1101
15 files changed
+502
-71
No files matched your search
@@ -46,11 +46,6 @@ float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
k, l, m, n,
|
||||
p, q, r, s
|
||||
};
|
||||
|
||||
float4 matrixA2 =
|
||||
{
|
||||
e, j, o, t
|
||||
};
|
||||
|
||||
return mul(matrixA1, color) + matrixA2;
|
||||
return mul(matrixA1, color) + float4( e, j, o, t );
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
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