mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-27 12:45:50 +00:00
Change all the post processing shaders to the new system.
Removes the README.txt file in favour of a new wiki page I'm going to generate.
This commit is contained in:
parent
cced3b4a18
commit
32fe37d834
44 changed files with 206 additions and 479 deletions
|
@ -1,10 +1,3 @@
|
|||
SAMPLER_BINDING(9) uniform sampler2D samp9;
|
||||
|
||||
out vec4 ocol0;
|
||||
in vec2 uv0;
|
||||
|
||||
uniform vec4 resolution;
|
||||
|
||||
void main()
|
||||
{
|
||||
//Change this number to increase the pixel size.
|
||||
|
@ -14,9 +7,9 @@ void main()
|
|||
float green = 0.0;
|
||||
float blue = 0.0;
|
||||
|
||||
vec2 pos = floor(uv0 * resolution.xy / pixelSize) * pixelSize * resolution.zw;
|
||||
float2 pos = floor(GetCoordinates() * GetResolution() / pixelSize) * pixelSize * GetInvResolution();
|
||||
|
||||
vec4 c0 = texture(samp9, pos);
|
||||
float4 c0 = SampleLocation(pos);
|
||||
|
||||
if (c0.r < 0.1)
|
||||
red = 0.1;
|
||||
|
@ -57,5 +50,5 @@ void main()
|
|||
else
|
||||
green = 1.0;
|
||||
|
||||
ocol0 = vec4(red, green, blue, c0.a);
|
||||
SetOutput(float4(red, green, blue, c0.a));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue