mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
15 lines
416 B
Plaintext
15 lines
416 B
Plaintext
|
void main()
|
||
|
{
|
||
|
vec2 uv = GetCoordinates();
|
||
|
vec2 ts = GetInvResolution();
|
||
|
|
||
|
vec4 sum = vec4(0.0, 0.0, 0.0, 0.0);
|
||
|
sum += SampleLocation(uv + vec2(-1.0, 0.0) * ts) * -1.0;
|
||
|
sum += SampleLocation(uv + vec2(0.0, -1.0) * ts) * -1.0;
|
||
|
sum += SampleLocation(uv) * 5.0;
|
||
|
sum += SampleLocation(uv + vec2(0.0, 1.0) * ts) * -1.0;
|
||
|
sum += SampleLocation(uv + vec2(1.0, 0.0) * ts) * -1.0;
|
||
|
|
||
|
SetOutput(saturate(sum));
|
||
|
}
|