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:
parent
499ba7dc1a
commit
1a9d370530
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user