Add project files.

This commit is contained in:
Daniel Clark
2022-11-01 15:26:08 +00:00
parent daa7b59f22
commit 7e4f880821
408 changed files with 16863 additions and 0 deletions
@@ -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.
@@ -0,0 +1,12 @@
sampler2D implicitInput : register(s0);
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;
}
Binary file not shown.
@@ -0,0 +1,51 @@
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
};
return mul(matrixA1, color) + float4( e, j, o, t );
}
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.
@@ -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;
}
Binary file not shown.