Generate mipmaps for lightmap
This commit is contained in:
parent
f85514a40a
commit
1edceee044
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue