mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
![MofoMan2000](/assets/img/avatar_default.png)
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.
12 lines
379 B
Plaintext
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);
|
|
} |