### Godot version

0810ecaafdbee3ea747219e6ab3a8de5d2216a09

### System information

Windows 11, Nvidia 3000, firefox

### Issue description

Exporting the gltf file is corrupt in blender.

### Steps to reproduce

1. Open project.
2. Export as glb
3. Open in blender
4. Blender display many warnings

![image](https://user-images.githubusercontent.com/32321/216740742-de662c5c-f5c3-44b5-a36e-8ad33defdbba.png)


### Minimal reproduction project

https://cdn.discordapp.com/attachments/598003845657788438/1071249610896580691/Test_Game_Project.zip


}
			if (metallness_image.is_valid() && metallness_image->get_size() != Vector2(width, height)) {
				metallness_image->resize(width, height, Image::INTERPOLATE_LANCZOS);
			}
			for (int32_t h = 0; h < height; h++) {
				for (int32_t w = 0; w < width; w++) {
					Color c = Color(1.0f, 1.0f, 1.0f);
					if (has_ao) {
						if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_RED == ao_channel) {
							c.r = ao_image->get_pixel(w, h).r;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_GREEN == ao_channel) {
							c.r = ao_image->get_pixel(w, h).g;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_BLUE == ao_channel) {
							c.r = ao_image->get_pixel(w, h).b;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_ALPHA == ao_channel) {
							c.r = ao_image->get_pixel(w, h).a;
						}
					}
					if (has_roughness) {
						if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_RED == roughness_channel) {
							c.g = roughness_image->get_pixel(w, h).r;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_GREEN == roughness_channel) {
							c.g = roughness_image->get_pixel(w, h).g;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_BLUE == roughness_channel) {
							c.g = roughness_image->get_pixel(w, h).b;
						} else if (BaseMaterial3D::TextureChannel::TEXTURE_CHANNEL_ALPHA == roughness_channel) {
							c.g = roughness_image->get_pixel(w, h).a;
						}
					}
					if (has_metalness) {