[client] egl: rework post process filters and add AMD FXR

This commit is contained in:
Geoffrey McRae
2021-08-10 13:08:54 +10:00
parent 3b751a2017
commit dc0b3a8d45
14 changed files with 2441 additions and 235 deletions

View File

@@ -13,8 +13,7 @@ out highp vec4 color;
uniform sampler2D sampler1;
uniform int scaleAlgo;
uniform highp vec2 size;
uniform highp float textureScale;
uniform highp ivec2 textureSize;
uniform highp float nvGain;
uniform int cbMode;
@@ -24,7 +23,7 @@ void main()
switch (scaleAlgo)
{
case EGL_SCALE_NEAREST:
color = texelFetch(sampler1, ivec2(uv * size * textureScale), 0);
color = texelFetch(sampler1, ivec2(uv * vec2(textureSize)), 0);
break;
case EGL_SCALE_LINEAR: