From 1edceee0447cbd816e6e5035d6dde59e705d6790 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Tue, 17 Sep 2024 17:15:28 +0100 Subject: [PATCH] Generate mipmaps for lightmap --- project/code/TMV/Mission.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/project/code/TMV/Mission.cs b/project/code/TMV/Mission.cs index a00468a..37817c8 100644 --- a/project/code/TMV/Mission.cs +++ b/project/code/TMV/Mission.cs @@ -508,6 +508,11 @@ public partial class Mission : Node3D }); } + for (var i = 0; i < lmLayerCount; i++) + { + lmImages[i].GenerateMipmaps(); + } + var lightmapTexture = new Texture2DArray(); lightmapTexture.CreateFromImages(lmImages); return lightmapTexture;