Open Canon0223 opened 1 year ago
Steps to Reproduce:
// etc1 support check whether alpha texture exists & load it auto alphaFile = vt->_fileName + TextureCache::getETC1AlphaFileSuffix(); Texture2D::PixelFormat oldPixelFormat = Texture2D::getDefaultAlphaPixelFormat(); reloadTexture(vt->_texture->getAlphaTexture(), alphaFile, vt->_pixelFormat);
//After reload alphaTexture, you should setAlphaTexture,Like: vt->_texture->setAlphaTexture(vt->_texture->getAlphaTexture());
//otherwise,ect1 texture will lost still
Steps to Reproduce:
17278 not fix the bug
// etc1 support check whether alpha texture exists & load it auto alphaFile = vt->_fileName + TextureCache::getETC1AlphaFileSuffix(); Texture2D::PixelFormat oldPixelFormat = Texture2D::getDefaultAlphaPixelFormat();
reloadTexture(vt->_texture->getAlphaTexture(), alphaFile, vt->_pixelFormat);
//After reload alphaTexture, you should setAlphaTexture,Like: vt->_texture->setAlphaTexture(vt->_texture->getAlphaTexture());
//otherwise,ect1 texture will lost still