1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

fix floating point precision issue

This commit is contained in:
S2S 2020-05-12 17:26:23 +02:00 committed by Sergey Lipskiy
parent 499ba7dc1a
commit 1a9d370530

View File

@ -2433,8 +2433,8 @@ public:
"highp vec2 wrap2D(in highp vec2 tc, in highp float width) \n"
"{ \n"
" float address = tc.s + tc.t * width; \n"
" return vec2(mod(address, width), floor(address/width)); \n"
" float div = floor(tc.s/width); \n"
" return tc + vec2(-div*width, div); \n"
"} \n"
"uniform mediump vec2 uTexSize0; \n"