- removed some special handling for white masks that was a dirty fix, the new code should support it out of the box properly

Signed-off-by: Alexis Maiquez <almamu@almamu.com>
This commit is contained in:
Alexis Maiquez 2021-08-08 02:10:31 +02:00
parent 4309ca722d
commit 65a26c2b16

View File

@ -205,25 +205,7 @@ namespace WallpaperEngine::Irrlicht
header = this->parseHeader (input); header = this->parseHeader (input);
mipmap = *header->mipmaps.begin (); mipmap = *header->mipmaps.begin ();
// relevant shaders are currently drawing these masks opaque; return a transparent image instead if (header->freeimageFormat == FREE_IMAGE_FORMAT::FIF_UNKNOWN)
if (
input->getFileName ().find ("materials/flowmask.tex") != std::string::npos ||
input->getFileName ().find ("godrays_downsample2_mask") != std::string::npos ||
input->getFileName ().find ("materials/util/white.tex") != std::string::npos
)
{
this->m_context->getDevice ()->getLogger ()->log (
"LOAD TEX: Skipping broken mask", input->getFileName ().c_str (), irr::ELL_INFORMATION
);
irr::u32 width = header->width;
irr::u32 height = header->height;
image = this->m_context->getDevice ()->getVideoDriver ()->createImage (
irr::video::ECF_A8R8G8B8, irr::core::dimension2d <irr::u32> (width, height)
);
}
else if (header->freeimageFormat == FREE_IMAGE_FORMAT::FIF_UNKNOWN)
{ {
image = this->m_context->getDevice ()->getVideoDriver ()->createImage ( image = this->m_context->getDevice ()->getVideoDriver ()->createImage (
irr::video::ECF_A8R8G8B8, irr::core::dimension2d<irr::u32> (header->width, header->height) irr::video::ECF_A8R8G8B8, irr::core::dimension2d<irr::u32> (header->width, header->height)