diff options
| author | omegadox <omegadox@gmail.com> | 2009-08-12 23:50:06 +0000 |
|---|---|---|
| committer | omegadox <omegadox@gmail.com> | 2009-08-12 23:50:06 +0000 |
| commit | 6e4d5102b57fdffd2f9441aac1c02bb88aa08b31 (patch) | |
| tree | 3c0fa58ac46be4b3c52f35416c911a3720ceed9e | |
| parent | 2ef33c915830f6fe9b08bfd9a9a2c2775de41916 (diff) | |
shader updates and new one added
| -rw-r--r-- | acidmetal.txt | 10 | ||||
| -rw-r--r-- | brighten.txt | 8 | ||||
| -rw-r--r-- | chrismas.txt | 5 | ||||
| -rw-r--r-- | cool1.txt | 8 | ||||
| -rw-r--r-- | invertedoutline.txt | 12 | ||||
| -rw-r--r-- | spookey1.txt | 8 | ||||
| -rw-r--r-- | spookey2.txt | 10 | ||||
| -rw-r--r-- | toxic.txt | 10 |
8 files changed, 37 insertions, 34 deletions
diff --git a/acidmetal.txt b/acidmetal.txt index 7f479ca274..8500f75dd4 100644 --- a/acidmetal.txt +++ b/acidmetal.txt @@ -6,11 +6,13 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) float red = 0.0;
float blue = 0.0;
- if (c0.r > 0.25 && c0.b > 0.25)
+ if (c0.r > 0.15 && c0.b > 0.15)
{
- blue = c0.b;
- red = c0.r;
+ blue = 0.5;
+ red = 0.5;
}
+
+ float green = max(c0.r + c0.b, c0.g);
- ocol0 = float4(red, c0.g, blue, 1.0);
+ ocol0 = float4(red, green, blue, 1.0);
}
\ No newline at end of file diff --git a/brighten.txt b/brighten.txt new file mode 100644 index 0000000000..ad1ae67572 --- /dev/null +++ b/brighten.txt @@ -0,0 +1,8 @@ +uniform samplerRECT samp0 : register(s0);
+
+void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
+{
+ float4 c0 = texRECT(samp0, uv0).rgba;
+ c0 += c0 * 2;
+ ocol0 = float4(c0.r, c0.g, c0.b, c0.a);
+}
\ No newline at end of file diff --git a/chrismas.txt b/chrismas.txt index 6de668b2db..1fa852b8a2 100644 --- a/chrismas.txt +++ b/chrismas.txt @@ -6,13 +6,14 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) float red = 0.0;
float green = 0.0;
- if (c0.r < 0.50 || c0.b > 0.5)
+ if (c0.r < 0.35 || c0.b > 0.35)
{
green = c0.g + (c0.b / 2);
}
else
{
- red = c0.r + (c0.b / 2);
+ //red = 1 - c0.r + (c0.b / 2);
+ red = c0.r + 0.4;
}
ocol0 = float4(red, green, 0.0, 1.0);
@@ -9,13 +9,13 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) if (c0.r < 0.50 || c0.b > 0.5)
{
- blue = c0.r + (c0.b / 2);
- red = c0.g + (c0.b / 2);
+ blue = c0.r;
+ red = c0.g;
}
else
{
- blue = c0.r + (c0.b / 2);
- green = c0.r + (c0.b / 2);
+ blue = c0.r;
+ green = c0.r;
}
ocol0 = float4(red, green, blue, 1.0);
diff --git a/invertedoutline.txt b/invertedoutline.txt index 72e835ac41..4131f6a299 100644 --- a/invertedoutline.txt +++ b/invertedoutline.txt @@ -3,15 +3,7 @@ uniform samplerRECT samp0 : register(s0); void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
{
float4 c0 = texRECT(samp0, uv0).rgba;
- float4 c1 = texRECT(samp0, uv0 + float2(3,3)).rgba;
- float red = c0.r;
- float green = c0.g;
- float blue = c0.b;
- float alpha = c0.a;
-
- red = c0.r - c1.r;
- green = c0.g - c1.g;
- blue = c0.b - c1.b;
+ float4 c1 = texRECT(samp0, uv0 + float2(5,5)).rgba;
- ocol0 = float4(red, green, blue, alpha);
+ ocol0 = c0 - c1;
}
\ No newline at end of file diff --git a/spookey1.txt b/spookey1.txt index f0cde83b55..cbfe6b0558 100644 --- a/spookey1.txt +++ b/spookey1.txt @@ -6,14 +6,14 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) float red = 0.0;
float blue = 0.0;
- if (c0.r < 0.50 || c0.b > 0.5)
+ if (c0.r < 0.35 || c0.b > 0.5)
{
- red = c0.g + (c0.b / 2);
+ red = c0.g + c0.b;
}
else
{
- red = c0.g + (c0.b / 2);
- blue = c0.r + (c0.b / 2);
+ red = c0.g + c0.b;
+ blue = c0.r + c0.b;
}
ocol0 = float4(red, 0.0, blue, 1.0);
diff --git a/spookey2.txt b/spookey2.txt index 747d236427..58919ae15d 100644 --- a/spookey2.txt +++ b/spookey2.txt @@ -7,15 +7,15 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) float green = 0.0;
float blue = 0.0;
- if (c0.r < 0.50 || c0.b > 0.5)
+ if (c0.r < 0.35 || c0.b > 0.5)
{
- red = c0.g + (c0.b / 2);
+ red = c0.g + c0.b;
}
else
{
- red = c0.g + (c0.b / 2);
- blue = c0.r + (c0.b / 2);
- green = c0.r + (c0.b / 2);
+ red = c0.g + c0.b;
+ blue = c0.r + c0.b;
+ green = c0.r + c0.b;
}
ocol0 = float4(red, green, blue, 1.0);
@@ -7,15 +7,15 @@ void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0) float green = 0.0;
float blue = 0.0;
- if (c0.r < 0.50 || c0.b > 0.5)
+ if (c0.r < 0.3 || c0.b > 0.5)
{
- blue = c0.r + (c0.b / 2);
- red = c0.g + (c0.b / 2);
+ blue = c0.r + c0.b;
+ red = c0.g + c0.b / 2;
}
else
{
- red = c0.g + (c0.b / 2);
- green = c0.r + (c0.b / 2);
+ red = c0.g + c0.b;
+ green = c0.r + c0.b;
}
ocol0 = float4(red, green, blue, 1.0);
|
