[client] egl: implement pixel perfect upscaling

This commit is contained in:
Geoffrey McRae
2019-04-19 11:23:51 +10:00
parent 6f77ba8aea
commit ba50fbdc3e
6 changed files with 51 additions and 17 deletions

View File

@@ -4,12 +4,19 @@ in highp vec2 uv;
out highp vec4 color;
uniform sampler2D sampler1;
uniform int nv;
uniform int nearest;
uniform highp vec2 size;
uniform int nv;
uniform highp float nvGain;
void main()
{
color = texture(sampler1, uv);
if(nearest == 1)
color = texture(sampler1, uv);
else
color = texelFetch(sampler1, ivec2(uv * size), 0);
if (nv == 1)
{