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

Fix mipmap when mipmap_lvl == 0.

Fixed AeroFighters Assault: texture issue on the plane (in game and menu) #118
This commit is contained in:
Sergey Lipskiy 2015-02-28 16:04:21 +06:00
parent eb42f8fe46
commit 7178145462

View File

@ -412,6 +412,11 @@ static const char* fragment_shader_mipmap =
" readtex1 = texture(uTex1, vTexCoord1); \n"
" return uPrimLod; \n"
" } \n"
" if (uMaxTile == 0) { \n"
" readtex0 = texture(uTex0, vTexCoord0); \n"
" readtex1 = readtex0; \n"
" return uMinLod; \n"
" } \n"
" mediump vec2 dx = dFdx(vLodTexCoord); \n"
" dx *= uScreenScale; \n"
" mediump vec2 dy = dFdy(vLodTexCoord); \n"