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

Correct mipmap shader.

Fixed Tetrisphere blending or texture issue on Mr. Education'sphere #682
This commit is contained in:
Sergey Lipskiy 2016-02-28 21:53:55 +06:00
parent 3215a8ad5d
commit bcdc6bc6a5

View File

@ -336,7 +336,11 @@ AUXILIARY_SHADER_VERSION
"mediump float mipmap(out lowp vec4 readtex0, out lowp vec4 readtex1) { \n"
" readtex0 = texture(uTex0, vTexCoord0); \n"
" readtex1 = textureLod(uTex1, vTexCoord1, 0.0); \n"
" if (uMaxTile == 0) return 1.0; \n"
" if (uMaxTile == 0) { \n"
" if (uEnableLod != 0 && (uTextureDetail & 2) == 0) \n"
" readtex1 = readtex0; \n"
" return 1.0; \n"
" } \n"
" \n"
" mediump float fMaxTile = float(uMaxTile); \n"
#if 1