1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Workaround for framebuffer textures

This commit is contained in:
s2s 2021-01-30 16:30:22 +01:00 committed by Sergey Lipskiy
parent fe244c5560
commit 39153304e1

View File

@ -317,8 +317,8 @@ public:
" vec2 texCoordOut = texCoord*uCacheShiftScale[idx]; \n"
" texCoordOut -= uTexOffset[idx]; \n"
" texCoordOut += uCacheOffset[idx]; \n"
" if (uTextureFilterMode != 0 && uCacheFrameBuffer[idx] != 0) \n"
" texCoordOut -= vec2(0.5); \n"
" if (uTextureFilterMode != 0 && uCacheFrameBuffer[idx] != 0) \n" /* Workaround for framebuffer textures. */
" texCoordOut -= vec2(0.0,1.0); \n" /* They contain garbage at the bottom. */
" return texCoordOut * uCacheScale[idx]; \n"
"} \n"
" \n"