Merge pull request #47876 from fire/gltf-export-fixes
Export gltf2 normal textures correctly.
This commit is contained in:
commit
33333f1681
1 changed files with 1 additions and 0 deletions
|
@ -3293,6 +3293,7 @@ Error GLTFDocument::_serialize_materials(Ref<GLTFState> 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);
|
||||
|
|
Loading…
Reference in a new issue