Removed Yellow texture used when texture file missing

This commit is contained in:
Mayank Nagpal 2021-07-03 14:44:55 +05:30 committed by K. S. Ernest (iFire) Lee
parent ef974a5e1a
commit 1bfd930402
1 changed files with 2 additions and 3 deletions

View File

@ -214,9 +214,8 @@ std::shared_ptr<TextureData> TextureBuilder::simple(int rawTexIndex, const std::
}
if (!image) {
// fallback is tiny transparent PNG
image = new ImageData(
textureName,
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==");
// image = new ImageData(textureName, "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==");
return nullptr;
}
std::shared_ptr<TextureData> texDat = gltf.textures.hold(