mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Correct needMirror condition in clampWrapMirror shader.
Fixed Blast Corps regression #2113
This commit is contained in:
parent
27128fe505
commit
a01718d2cf
|
@ -2227,7 +2227,7 @@ public:
|
|||
" texCoord = clamped * texCoord + notClamped * (wrapped*mod(texCoord, vWrap) + notWrapped*texCoord); \n"
|
||||
" highp vec2 intPart = floor(texCoord); \n"
|
||||
" highp vec2 fractPart = fract(texCoord); \n"
|
||||
" lowp vec2 needMirror = step(vec2(0.5), mod(intPart, vec2(2.0))) * vMirror; \n"
|
||||
" lowp vec2 needMirror = step(vec2(0.5), mod(intPart, vWrap)) * vMirror; \n"
|
||||
" texCoord = clamped * texCoord + notClamped * fractPart; \n"
|
||||
" texCoord = (one - vMirror) * texCoord + vMirror * fractPart; \n"
|
||||
" texCoord = (one - texCoord) * needMirror + texCoord * (one - needMirror); \n"
|
||||
|
|
Loading…
Reference in New Issue
Block a user