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

Do not shift texture coordinates for frame buffer textures.

Fixed #2112 Conker black line following your shadow
This commit is contained in:
Sergey Lipskiy 2019-11-12 10:51:25 +07:00
parent 93b33e485d
commit 9dff907f15

View File

@ -280,8 +280,9 @@ public:
" vec2 texCoordOut = texCoord*uCacheShiftScale[idx]; \n"
" texCoordOut -= uTexOffset[idx]; \n"
" texCoordOut += uCacheOffset[idx]; \n"
" if (uTextureFilterMode != 0) texCoordOut += vec2(0.5); \n"
" return texCoordOut* uCacheScale[idx]; \n"
" if (uTextureFilterMode != 0 && uCacheFrameBuffer[idx] == 0)\n"
" texCoordOut += vec2(0.5); \n"
" return texCoordOut* uCacheScale[idx]; \n"
"} \n"
" \n"
"void main() \n"