add Gooey Effect Demo
This commit is contained in:
1 parent
a943927a24
commit
cd3072f026
22 files changed
+571
-40
No files matched your search
@@ -0,0 +1,10 @@
|
||||
sampler2D implicitInput : register(s0);
|
||||
float brightness : register(C0);
|
||||
|
||||
float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
{
|
||||
float4 color = tex2D(implicitInput, uv);
|
||||
color.rgba *= brightness;
|
||||
|
||||
return color;
|
||||
}
|
||||
Binary file not shown.
@@ -1,3 +1,5 @@
|
||||
sampler2D implicitInput : register(s0);
|
||||
|
||||
float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
{
|
||||
float4 color = tex2D(implicitInput, uv);
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
sampler2D implicitInput : register(s0);
|
||||
float a : register(c0);
|
||||
float b : register(c1);
|
||||
float c : register(c2);
|
||||
float d : register(c3);
|
||||
float e : register(c4);
|
||||
|
||||
float f : register(c5);
|
||||
float g : register(c6);
|
||||
float h : register(c7);
|
||||
float i : register(c8);
|
||||
float j : register(c9);
|
||||
|
||||
float k : register(c10);
|
||||
float l : register(c11);
|
||||
float m : register(c12);
|
||||
float n : register(c13);
|
||||
float o : register(c14);
|
||||
|
||||
float p : register(c15);
|
||||
float q : register(c16);
|
||||
float r : register(c17);
|
||||
float s : register(c18);
|
||||
float t : register(c19);
|
||||
|
||||
/*
|
||||
|
||||
-- -- -- --
|
||||
| a b c d e | | R |
|
||||
| f g h i j | | G |
|
||||
A = | k l m n o | C = | B | R = AC
|
||||
| p q r s t | | A |
|
||||
-- -- | 1 |
|
||||
-- --
|
||||
|
||||
*/
|
||||
|
||||
float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
{
|
||||
float4 color = tex2D(implicitInput, uv);
|
||||
|
||||
float4x4 matrixA1 =
|
||||
{
|
||||
a, b, c, d,
|
||||
f, g, h, i,
|
||||
k, l, m, n,
|
||||
p, q, r, s
|
||||
};
|
||||
|
||||
float4 matrixA2 =
|
||||
{
|
||||
e, j, o, t
|
||||
};
|
||||
|
||||
return mul(matrixA1, color) + matrixA2;
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
sampler2D implicitInput : register(s0);
|
||||
float contrast : register(C0);
|
||||
|
||||
float4 main(float2 uv : TEXCOORD) : COLOR
|
||||
{
|
||||
float4 color = tex2D(implicitInput, uv);
|
||||
float value = (1 - contrast) / 2;
|
||||
|
||||
color.rgba = color.rgba * contrast + value;
|
||||
|
||||
return color;
|
||||
}
|
||||
Binary file not shown.
Reference in new issue
Block a user