prevent bleeding in screen texture

fixes #920
This commit is contained in:
RSDuck
2021-01-02 08:55:48 +01:00
parent fa4363ede6
commit 18fe5c6759
3 changed files with 52 additions and 28 deletions

View File

@ -22,6 +22,7 @@
const char* kCompositorVS = R"(#version 140
in vec2 vPosition;
in vec2 vTexcoord;
smooth out vec2 fTexcoord;
@ -33,7 +34,7 @@ void main()
fpos.w = 1.0;
gl_Position = fpos;
fTexcoord = (vPosition + vec2(1.0, 1.0)) * (vec2(256.0, 384.0) / 2.0);
fTexcoord = vTexcoord;
}
)";