dolphin/sepia.txt
MofoMan2000 ab1537925f My first commit with SVN, let's all hope I don't make some epic stupid mistake…
Add two shaders (if I did this right):
1. nightvision2scanlines - The nightvision2 shader with COD4-style scanlines added as requested in Issue 1. Should we keep the original nightvision2 as well?
2. sepia - An attempt at an old-timey sepia tone like in late 1800's video.
2010-06-23 04:53:43 +00:00

12 lines
379 B
Plaintext

uniform samplerRECT samp0 : register(s0);
void main(out float4 ocol0 : COLOR0, in float2 uv0 : TEXCOORD0)
{
float4 c0 = texRECT(samp0, uv0).rgba;
// Same coefficients as grayscale2 at this point
float avg = (0.222 * c0.r) + (0.707 * c0.g) + (0.071 * c0.b);
float red=avg;
float green=avg*.75;
float blue=avg*.5;
ocol0 = float4(red, green, blue, c0.a);
}