Generate mipmaps for lightmap

This commit is contained in:
Jarrod Doyle 2024-09-17 17:15:28 +01:00
parent f85514a40a
commit 1edceee044
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 5 additions and 0 deletions

View File

@ -508,6 +508,11 @@ public partial class Mission : Node3D
}); });
} }
for (var i = 0; i < lmLayerCount; i++)
{
lmImages[i].GenerateMipmaps();
}
var lightmapTexture = new Texture2DArray(); var lightmapTexture = new Texture2DArray();
lightmapTexture.CreateFromImages(lmImages); lightmapTexture.CreateFromImages(lmImages);
return lightmapTexture; return lightmapTexture;