mirror of https://github.com/axmolengine/axmol.git
fix bug: about minFilter and magFilter
This commit is contained in:
parent
9e115073a1
commit
c3cc8b917c
|
@ -35,7 +35,7 @@ Terrain * Terrain::create(TerrainData ¶meter, CrackFixedType fixedType)
|
|||
texture->generateMipmap();
|
||||
terrain->_detailMapTextures[0] = texture;
|
||||
texParam.minFilter = GL_LINEAR_MIPMAP_LINEAR;
|
||||
texParam.magFilter = GL_LINEAR_MIPMAP_LINEAR;
|
||||
texParam.magFilter = GL_LINEAR;
|
||||
texture->setTexParameters(texParam);
|
||||
delete textImage;
|
||||
}else
|
||||
|
@ -47,7 +47,7 @@ Terrain * Terrain::create(TerrainData ¶meter, CrackFixedType fixedType)
|
|||
terrain->_alphaMap->initWithImage(image);
|
||||
texParam.wrapS = GL_CLAMP_TO_EDGE;
|
||||
texParam.wrapT = GL_CLAMP_TO_EDGE;
|
||||
texParam.minFilter = GL_LINEAR;
|
||||
texParam.minFilter = GL_LINEAR_MIPMAP_LINEAR;
|
||||
texParam.magFilter = GL_LINEAR;
|
||||
terrain->_alphaMap->setTexParameters(texParam);
|
||||
delete image;
|
||||
|
@ -65,7 +65,7 @@ Terrain * Terrain::create(TerrainData ¶meter, CrackFixedType fixedType)
|
|||
texParam.wrapS = GL_REPEAT;
|
||||
texParam.wrapT = GL_REPEAT;
|
||||
texParam.minFilter = GL_LINEAR_MIPMAP_LINEAR;
|
||||
texParam.magFilter = GL_LINEAR_MIPMAP_LINEAR;
|
||||
texParam.magFilter = GL_LINEAR;
|
||||
texture->setTexParameters(texParam);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue