enable hidpi

This commit is contained in:
2020-08-20 12:09:10 +09:00
parent 7846fdae50
commit 4010759be5
32 changed files with 1468 additions and 5 deletions

View File

@@ -0,0 +1,17 @@
#if PREMULTIPLY_ALPHA == 0
#error __disablestage
#endif
#request uniform "prev" tex
uniform sampler2D tex;
out vec4 fragment;
in vec4 gl_FragCoord;
void main() {
fragment = texelFetch(tex, ivec2(gl_FragCoord.x, gl_FragCoord.y), 0);
#if PREMULTIPLY_ALPHA > 0
fragment.rgb *= fragment.a;
#endif
}