Fix deactivated lightmap light not working

This commit is contained in:
Magnus Norddahl 2025-05-11 17:57:44 +02:00
commit bfb37a89c3
7 changed files with 61 additions and 4 deletions

View file

@ -227,7 +227,7 @@ public:
// Lightmap tiles and their locations in the texture atlas
struct
{
int TextureCount = 0;
int TextureCount = 10; // To do: remove all the limits and instead resize GPU resources if they are exhausted. Too difficult to calculate it all up front.
int TextureSize = 1024;
TArray<uint16_t> TextureData;
uint16_t SampleDistance = 8;

View file

@ -26,6 +26,14 @@ struct LightmapTileBinding
}
};
enum TileUpdatePolicy
{
MapChanges,
AlwaysUltraQuality,
Always,
MapChangesUltraQuality
};
struct LightmapTile
{
// Surface location in lightmap texture