浏览代码

Merge pull request #87775 from clayjohn/GLTF-export-ra-rg

Remove workaround in GLTF exporter that double converts ra textures to rg
Rémi Verschelde 1 年之前
父节点
当前提交
cb0d450b7d
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      modules/gltf/gltf_document.cpp

+ 0 - 1
modules/gltf/gltf_document.cpp

@@ -3816,7 +3816,6 @@ Error GLTFDocument::_serialize_materials(Ref<GLTFState> p_state) {
 						}
 						img->decompress();
 						img->convert(Image::FORMAT_RGBA8);
-						img->convert_ra_rgba8_to_rg();
 						for (int32_t y = 0; y < img->get_height(); y++) {
 							for (int32_t x = 0; x < img->get_width(); x++) {
 								Color c = img->get_pixel(x, y);