A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Houses 01-05: cap the colour maps at 2048 px on the web (Refs #2007 #2259) (#2295)
Eyal Golanf1448fcc6462
diff --git a/changelog.d/houses-web-2048.md b/changelog.d/houses-web-2048.mdnew file mode 100644index 000000000..0b8089c83--- /dev/null+++ b/changelog.d/houses-web-2048.md@@ -0,0 +1,5 @@+### Changed++- Tal Heuberger's five generated houses (01 to 05) stream smaller on the web: their colour maps import at 2048 px in the+ WebGL build only (owner, 2 November 2026: "Cap at 2048 px on web (Recommended)"). The desktop build keeps 4096 px, and+ the source images and meshes are unchanged.diff --git a/docs/generated-buildings-props.md b/docs/generated-buildings-props.mdindex bb8cbc525..88f4dd557 100644--- a/docs/generated-buildings-props.md+++ b/docs/generated-buildings-props.md@@ -18,7 +18,7 @@ The [admission receipt](generated-buildings-props-admission.json) identifies eve|11 crates|2126|Editor-only; no sourced map role||12 wall|2146|Editor-only; no sourced map role|-Mesh and animation import compression are Off. Every source clip is kept; all eleven provider GLBs contain zero clips and zero skins. Texture import is Compressed (GPU block compression, per the owner's 24 October 2026 ruling), Crunch is off for every platform, and max size is 4096, matching the source. There are no `-near`/`-far` files or new generated LODs. Existing main catalog entries, placements and 54 baked mesh sub-assets are unchanged.+Mesh and animation import compression are Off. Every source clip is kept; all eleven provider GLBs contain zero clips and zero skins. Texture import is Compressed (GPU block compression, per the owner's 24 October 2026 ruling), Crunch is off for every platform, and max size is 4096, matching the source, on Default and Standalone. On WebGL the five houses' colour maps (01 to 05) import at 2048 since 2 November 2026 (owner: "Cap at 2048 px on web (Recommended)"), through a WebGL override in each `_basecolor.jpg.meta`; the source JPGs stay byte-identical (`BuildingModelImportTests.TheGeneratedHousesColourMapsAreCappedAt2048OnTheWebOnly`). The other six keep 4096 there too. There are no `-near`/`-far` files or new generated LODs. Existing main catalog entries, placements and 54 baked mesh sub-assets are unchanged.## Loading and placement dependencydiff --git a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-01-netanya-tiled-house-original/generated-1948-01-netanya-tiled-house-original_basecolor.jpg.meta b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-01-netanya-tiled-house-original/generated-1948-01-netanya-tiled-house-original_basecolor.jpg.metaindex f40be3b55..2a11ab192 100644--- a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-01-netanya-tiled-house-original/generated-1948-01-netanya-tiled-house-original_basecolor.jpg.meta+++ b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-01-netanya-tiled-house-original/generated-1948-01-netanya-tiled-house-original_basecolor.jpg.meta@@ -95,14 +95,14 @@ TextureImporter:forceMaximumCompressionQuality_BC6H_BC7: 0- serializedVersion: 4buildTarget: WebGL- maxTextureSize: 4096+ maxTextureSize: 2048resizeAlgorithm: 0textureFormat: -1textureCompression: 1compressionQuality: 100crunchedCompression: 0allowsAlphaSplitting: 0- overridden: 0+ overridden: 1ignorePlatformSupport: 0androidETC2FallbackOverride: 0forceMaximumCompressionQuality_BC6H_BC7: 0diff --git a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-02-netanya-two-storey-balcony-house/generated-1948-02-netanya-two-storey-balcony-house_basecolor.jpg.meta b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-02-netanya-two-storey-balcony-house/generated-1948-02-netanya-two-storey-balcony-house_basecolor.jpg.metaindex d62120dcd..90861e84d 100644--- a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-02-netanya-two-storey-balcony-house/generated-1948-02-netanya-two-storey-balcony-house_basecolor.jpg.meta+++ b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-02-netanya-two-storey-balcony-house/generated-1948-02-netanya-two-storey-balcony-house_basecolor.jpg.meta@@ -95,14 +95,14 @@ TextureImporter:forceMaximumCompressionQuality_BC6H_BC7: 0- serializedVersion: 4buildTarget: WebGL- maxTextureSize: 4096+ maxTextureSize: 2048resizeAlgorithm: 0textureFormat: -1textureCompression: 1compressionQuality: 100crunchedCompression: 0allowsAlphaSplitting: 0- overridden: 0+ overridden: 1ignorePlatformSupport: 0androidETC2FallbackOverride: 0forceMaximumCompressionQuality_BC6H_BC7: 0diff --git a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-03-netanya-flat-roof-porch-house/generated-1948-03-netanya-flat-roof-porch-house_basecolor.jpg.meta b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-03-netanya-flat-roof-porch-house/generated-1948-03-netanya-flat-roof-porch-house_basecolor.jpg.metaindex a127ea27c..853d6b2ad 100644--- a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-03-netanya-flat-roof-porch-house/generated-1948-03-netanya-flat-roof-porch-house_basecolor.jpg.meta+++ b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-03-netanya-flat-roof-porch-house/generated-1948-03-netanya-flat-roof-porch-house_basecolor.jpg.meta@@ -95,14 +95,14 @@ TextureImporter:forceMaximumCompressionQuality_BC6H_BC7: 0- serializedVersion: 4buildTarget: WebGL- maxTextureSize: 4096+ maxTextureSize: 2048resizeAlgorithm: 0textureFormat: -1textureCompression: 1compressionQuality: 100crunchedCompression: 0allowsAlphaSplitting: 0- overridden: 0+ overridden: 1ignorePlatformSupport: 0androidETC2FallbackOverride: 0forceMaximumCompressionQuality_BC6H_BC7: 0diff --git a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-04-dark-basalt-house/generated-1948-04-dark-basalt-house_basecolor.jpg.meta b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-04-dark-basalt-house/generated-1948-04-dark-basalt-house_basecolor.jpg.metaindex 710b6d069..70cb102c8 100644--- a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-04-dark-basalt-house/generated-1948-04-dark-basalt-house_basecolor.jpg.meta+++ b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-04-dark-basalt-house/generated-1948-04-dark-basalt-house_basecolor.jpg.meta@@ -95,14 +95,14 @@ TextureImporter:forceMaximumCompressionQuality_BC6H_BC7: 0- serializedVersion: 4buildTarget: WebGL- maxTextureSize: 4096+ maxTextureSize: 2048resizeAlgorithm: 0textureFormat: -1textureCompression: 1compressionQuality: 100crunchedCompression: 0allowsAlphaSplitting: 0- overridden: 0+ overridden: 1ignorePlatformSupport: 0androidETC2FallbackOverride: 0forceMaximumCompressionQuality_BC6H_BC7: 0diff --git a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-05-plastered-courtyard-house-original/generated-1948-05-plastered-courtyard-house-original_basecolor.jpg.meta b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-05-plastered-courtyard-house-original/generated-1948-05-plastered-courtyard-house-original_basecolor.jpg.metaindex 0857a45b6..3aaf73e00 100644--- a/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-05-plastered-courtyard-house-original/generated-1948-05-plastered-courtyard-house-original_basecolor.jpg.meta+++ b/unity/Assets/Art/Settlements/Prototype/Models/generated-1948-05-plastered-courtyard-house-original/generated-1948-05-plastered-courtyard-house-original_basecolor.jpg.meta@@ -95,14 +95,14 @@ TextureImporter:forceMaximumCompressionQuality_BC6H_BC7: 0- serializedVersion: 4buildTarget: WebGL- maxTextureSize: 4096+ maxTextureSize: 2048resizeAlgorithm: 0textureFormat: -1textureCompression: 1compressionQuality: 100crunchedCompression: 0allowsAlphaSplitting: 0- overridden: 0+ overridden: 1ignorePlatformSupport: 0androidETC2FallbackOverride: 0forceMaximumCompressionQuality_BC6H_BC7: 0diff --git a/unity/Assets/Editor/CollectionImport.cs b/unity/Assets/Editor/CollectionImport.csindex f44fd4f40..ca972c37b 100644--- a/unity/Assets/Editor/CollectionImport.cs+++ b/unity/Assets/Editor/CollectionImport.cs@@ -50,7 +50,7 @@ namespace Statecraft.Game.EditorTools/// <summary>Issue #707: the special-buildings bundle's prefabs, one per model, beside #675's imported model in its own/// folder (CollectionCatalog.PrefabPath): the model with its own material on every renderer. The models' import/// settings are #675's and are left as they are; Tal Heuberger's generated houses keep their delivered import settings- /// (max 4096, quality 100, no rig), so only their prefabs are built.</summary>+ /// (max 4096, quality 100, no rig; on WebGL a 2048 cap, owner 2 November 2026), so only their prefabs are built.</summary>public static void MakeBuildingPrefabs(){foreach (var id in CollectionCatalog.Ids.Where(CollectionCatalog.IsBuilding))diff --git a/unity/Assets/Editor/HexTiles/HexHouseLevels.cs b/unity/Assets/Editor/HexTiles/HexHouseLevels.csindex 05d656160..36754c429 100644--- a/unity/Assets/Editor/HexTiles/HexHouseLevels.cs+++ b/unity/Assets/Editor/HexTiles/HexHouseLevels.cs@@ -43,8 +43,26 @@ namespace Statecraft.HexTilespublic const float MaxError = 0.005f;public static string Stem(string id) => Folder + id + "/" + id;+public static string LightStem(string id) => Stem(id) + "-light";+ /// <summary>The width in texels of the material's colour map as delivered (its importer's source size), not as imported+ /// for the active build target, which a platform cap shrinks (WebGL: 2048, owner 2 November 2026).</summary>+ public static int SourceTexels(Material material)+ {+ string path = material.mainTexture != null ? AssetDatabase.GetAssetPath(material.mainTexture) : "";+ if (!(AssetImporter.GetAtPath(path) is TextureImporter importer))+ throw new InvalidOperationException($"{material.name}: its colour map has no texture importer ('{path}')");+ importer.GetSourceTextureWidthAndHeight(out int width, out _);+ return width;+ }++ /// <summary>The lighter level Build makes of a house's mesh, writing no asset: <see cref="Simplify"/> with Build's+ /// settings, its seam tolerance <see cref="UvToleranceTexels"/> of the material's colour map as delivered+ /// (<see cref="SourceTexels"/>), so the result is the same under every editor build target (HexHouseLevelTests).</summary>+ public static Mesh LightMesh(Mesh source, Material material) =>+ Simplify(source, UvToleranceTexels / SourceTexels(material), EdgeTolerance, MaxError);+[Serializable]sealed class Record{@@ -71,7 +89,7 @@ namespace Statecraft.HexTilesif (prefab == null || filter == null || filter.sharedMesh == null || material == null || material.mainTexture == null)throw new InvalidOperationException("missing source house " + id);var source = filter.sharedMesh;- var light = Simplify(source, UvToleranceTexels / material.mainTexture.width, EdgeTolerance, MaxError);+ var light = LightMesh(source, material);light.name = id + "-light";// Copied into the existing asset on a rebuild, so the prefab's reference (the asset's GUID) holds.diff --git a/unity/Assets/Editor/HexTiles/Tests/HexHouseLevelTests.cs b/unity/Assets/Editor/HexTiles/Tests/HexHouseLevelTests.csindex 2fe6e74eb..15938de3a 100644--- a/unity/Assets/Editor/HexTiles/Tests/HexHouseLevelTests.cs+++ b/unity/Assets/Editor/HexTiles/Tests/HexHouseLevelTests.cs@@ -99,19 +99,67 @@ public class HexHouseLevelTests}/// <summary>The checks above test the committed -light files, so a broken HexHouseLevels.Simplify would only show at the- /// next rebuild (owner, PR #1994, 30 October 2026). This runs it on house 04, the one the Tiberias boards draw, with- /// Build's settings, and holds the fresh mesh to the same seam and texture promises.</summary>+ /// next rebuild (owner, PR #1994, 30 October 2026). This runs Build's mesh step (HexHouseLevels.LightMesh) on house 04,+ /// the one the Tiberias boards draw, and holds the fresh mesh to the same seam and texture promises and to the committed+ /// -light mesh, vertex for vertex.</summary>[Test]public void TheSimplifierKeepsTheSeamsAndTheTextureOfHouse04(){const string id = "generated-1948-04-dark-basalt-house";var source = SourceMesh(id);- int texels = AssetDatabase.LoadAssetAtPath<Material>(Stem(id) + ".mat").mainTexture.width;- var light = HexHouseLevels.Simplify(source, HexHouseLevels.UvToleranceTexels / texels, HexHouseLevels.EdgeTolerance, HexHouseLevels.MaxError);- try { KeepsTheSeamsAndTheTexture(id, source, light); }+ var light = HexHouseLevels.LightMesh(source, AssetDatabase.LoadAssetAtPath<Material>(Stem(id) + ".mat"));+ try+ {+ KeepsTheSeamsAndTheTexture(id, source, light);+ SameAsCommitted(id, light, $"editor target {EditorUserBuildSettings.activeBuildTarget}");+ }finally { UnityEngine.Object.DestroyImmediate(light); }}+ /// <summary>Build's seam tolerance is one texel of the colour map as delivered, not as imported for the editor's build+ /// target, which the WebGL cap halves (owner, 2 November 2026). Under any target: house 04's map is copied into a+ /// temporary folder (deleted afterwards) with its import capped at 2048 on every platform, so its imported width (2048)+ /// differs from its source width (4096), and LightMesh given a material with that copy must still make the committed+ /// mesh. A LightMesh that read the imported width would double the tolerance and make another mesh.</summary>+ [Test]+ public void TheLighterLevelMeasuresItsToleranceInTheDeliveredTexels()+ {+ const string id = "generated-1948-04-dark-basalt-house";+ var houseMaterial = AssetDatabase.LoadAssetAtPath<Material>(Stem(id) + ".mat");+ string root = "Assets/HexHouseTexelProbe" + Guid.NewGuid().ToString("N"), copy = root + "/basalt_basecolor.jpg";+ Material? material = null; Mesh? light = null;+ try+ {+ AssetDatabase.CreateFolder("Assets", root.Substring("Assets/".Length));+ Assert.IsTrue(AssetDatabase.CopyAsset(AssetDatabase.GetAssetPath(houseMaterial.mainTexture), copy), "copy house 04's colour map");+ var importer = (TextureImporter)AssetImporter.GetAtPath(copy);+ importer.maxTextureSize = 2048;+ foreach (var target in new[] { "Standalone", "WebGL" }) importer.ClearPlatformTextureSettings(target);+ importer.SaveAndReimport();+ var capped = AssetDatabase.LoadAssetAtPath<Texture2D>(copy);+ importer.GetSourceTextureWidthAndHeight(out int sourceWidth, out _);+ Assert.AreEqual((4096, 2048), (sourceWidth, capped.width), "the probe: delivered 4096 px, imported 2048 px");+ material = new Material(houseMaterial) { mainTexture = capped };+ light = HexHouseLevels.LightMesh(SourceMesh(id), material);+ SameAsCommitted(id, light, "a material whose map imports at 2048 px");+ }+ finally+ {+ if (light != null) UnityEngine.Object.DestroyImmediate(light);+ if (material != null) UnityEngine.Object.DestroyImmediate(material);+ AssetDatabase.DeleteAsset(root);+ }+ }++ static void SameAsCommitted(string id, Mesh light, string context)+ {+ var committed = AssetDatabase.LoadAssetAtPath<Mesh>(Light(id) + ".asset");+ TestContext.WriteLine($"{id} ({context}): fresh {light.triangles.Length / 3} triangles, committed {committed.triangles.Length / 3}");+ CollectionAssert.AreEqual(committed.triangles, light.triangles, $"{id} ({context}): the committed lighter level's triangles");+ CollectionAssert.AreEqual(committed.vertices, light.vertices, $"{id} ({context}): its vertices");+ CollectionAssert.AreEqual(committed.uv, light.uv, $"{id} ({context}): its UVs");+ }+/// <summary>The lighter mesh's promises that need no prefab: fewer triangles, every vertex one of the source's, no seam/// or edge opened, the chart corners kept, the texture border within the tolerances.</summary>static void KeepsTheSeamsAndTheTexture(string id, Mesh source, Mesh light)@@ -147,7 +195,7 @@ public class HexHouseLevelTests// of Tal's colour map) and in 3D at once: the texture border moved by at most that, summed over all the steps.var sourcePositions = Enumerable.Range(0, sv.Length).GroupBy(i => sv[i]).ToDictionary(g => g.Key, g => g.Count());var seams = SeamSegments(lv, luv, lt);- int texels = AssetDatabase.LoadAssetAtPath<Material>(Stem(id) + ".mat").mainTexture.width;+ int texels = HexHouseLevels.SourceTexels(AssetDatabase.LoadAssetAtPath<Material>(Stem(id) + ".mat"));float uvTol = HexHouseLevels.UvToleranceTexels / texels * 1.001f;float size = source.bounds.size.magnitude, tol3 = HexHouseLevels.EdgeTolerance * size * 1.001f;int removed = 0;diff --git a/unity/Assets/Tests/EditMode/BuildingModelImportTests.cs b/unity/Assets/Tests/EditMode/BuildingModelImportTests.csindex 95c80cfd2..9b60b33c1 100644--- a/unity/Assets/Tests/EditMode/BuildingModelImportTests.cs+++ b/unity/Assets/Tests/EditMode/BuildingModelImportTests.cs@@ -130,25 +130,63 @@ public class BuildingModelImportTestsAssert.IsFalse(imp.isReadable, path + " GPU-only");if (Generated(id)){- // The generated houses keep their delivered, approved import: compressed, quality 100, exactly 4096, no overrides.+ // The generated houses keep their delivered, approved import: compressed, quality 100, exactly 4096, and no+ // override but the web cap (TheGeneratedHousesColourMapsAreCappedAt2048OnTheWebOnly).Assert.AreEqual(4096, imp.maxTextureSize, path + " max size");Assert.AreEqual(100, imp.compressionQuality, path + " quality");Assert.AreEqual(TextureImporterCompression.Compressed, imp.textureCompression, path + " compression");- foreach (var target in new[] { "Standalone", "WebGL", "Android", "iPhone" })+ foreach (var target in new[] { "Standalone", "Android", "iPhone" })Assert.IsFalse(imp.GetPlatformTextureSettings(target).overridden, path + " " + target + " override");}- foreach (var target in new[] { "Standalone", "WebGL" })+ foreach (var target in Generated(id) ? new[] { "Standalone" } : new[] { "Standalone", "WebGL" }){var setting = imp.GetPlatformTextureSettings(target);Assert.GreaterOrEqual(setting.maxTextureSize, Math.Max(width, height), path + " " + target + " keeps source size");Assert.IsFalse(setting.crunchedCompression, path + " " + target);}+ // Imported at the source size, or at the active target's cap where it overrides one (the houses on WebGL: 2048).+ // Only WebGL and the desktop target are mapped here: no colour map in this folder overrides Android or iOS (asserted above+ // for the houses).+ var active = imp.GetPlatformTextureSettings(EditorUserBuildSettings.activeBuildTarget == BuildTarget.WebGL ? "WebGL" : "Standalone");+ int cap = active.overridden ? active.maxTextureSize : imp.maxTextureSize;+ int longest = Math.Max(width, height), w = width, h = height;+ if (longest > cap) { w = width * cap / longest; h = height * cap / longest; } // Unity keeps the aspect ratiovar tex = AssetDatabase.LoadAssetAtPath<Texture2D>(path);- Assert.AreEqual(width, tex.width, path + " source width"); Assert.AreEqual(height, tex.height, path + " source height");+ Assert.AreEqual(w, tex.width, path + " imported width"); Assert.AreEqual(h, tex.height, path + " imported height");Assert.Greater(tex.mipmapCount, 1, path + " imported mipmaps");}}+ /// <summary>Owner, 2 November 2026: "Cap at 2048 px on web (Recommended)". Each generated house's colour map imports at+ /// 2048 px in the WebGL build only, through a WebGL override, so its streamed bundle is smaller. The default and desktop+ /// import keep the delivered 4096 px, and the source JPG is unchanged.</summary>+ [Test]+ public void TheGeneratedHousesColourMapsAreCappedAt2048OnTheWebOnly()+ {+ var houses = Ids.Where(Generated).ToArray();+ Assert.AreEqual(5, houses.Length, "houses 01 to 05");+ foreach (var id in houses)+ {+ var path = ColourMap(id); var imp = (TextureImporter)AssetImporter.GetAtPath(path);+ var web = imp.GetPlatformTextureSettings("WebGL");+ Assert.IsTrue(web.overridden, path + " WebGL override");+ Assert.AreEqual(2048, web.maxTextureSize, path + " WebGL max size");+ Assert.AreEqual(TextureImporterFormat.Automatic, web.format, path + " WebGL format");+ Assert.AreEqual(TextureImporterCompression.Compressed, web.textureCompression, path + " WebGL compression");+ Assert.IsFalse(web.crunchedCompression, path + " WebGL crunch");+ Assert.AreEqual(100, web.compressionQuality, path + " WebGL quality");+ Assert.Greater(imp.maxTextureSize, web.maxTextureSize, path + " the default keeps more than the web cap");+ Assert.IsFalse(imp.GetPlatformTextureSettings("Standalone").overridden, path + " desktop keeps the default");+ }+ // Only the houses: no other generated model's colour map (the tents, the props, the vehicles) has a WebGL override.+ var others = AssetDatabase.FindAssets("t:Texture2D", new[] { "Assets" }).Select(AssetDatabase.GUIDToAssetPath)+ .Where(p => System.IO.Path.GetFileName(p).StartsWith("generated-1948-", StringComparison.Ordinal) && p.EndsWith("_basecolor.jpg", StringComparison.Ordinal)+ && !p.StartsWith(Folder + "/", StringComparison.Ordinal)).ToArray();+ Assert.GreaterOrEqual(others.Length, 6, "the tents, the props and the vehicles");+ foreach (var path in others)+ Assert.IsFalse(((TextureImporter)AssetImporter.GetAtPath(path)).GetPlatformTextureSettings("WebGL").overridden, path + " WebGL override");+ }+[Test]public void EveryMaterialDrawsItsOwnColourMapWithGpuInstancing(){diff --git a/unity/Assets/Tests/EditMode/Generated1948AssetTests.cs b/unity/Assets/Tests/EditMode/Generated1948AssetTests.csindex 7b88c193c..dee6fb8c8 100644--- a/unity/Assets/Tests/EditMode/Generated1948AssetTests.cs+++ b/unity/Assets/Tests/EditMode/Generated1948AssetTests.cs@@ -60,9 +60,11 @@ public class Generated1948AssetTestsvar texture = material.mainTexture; Assert.IsNotNull(texture, receipt.id);string image = AssetDatabase.GetAssetPath(texture);Assert.AreEqual(receipt.embedded_image_sha256, Hash(Disk(image)), receipt.id);- Assert.AreEqual(receipt.embedded_dimensions[0], texture.width, receipt.id);- Assert.AreEqual(receipt.embedded_dimensions[1], texture.height, receipt.id);var ti = (TextureImporter)AssetImporter.GetAtPath(image);+ // The source image's size, not the imported texture's, which the houses' WebGL cap (2048) shrinks under that target.+ ti.GetSourceTextureWidthAndHeight(out int width, out int height);+ Assert.AreEqual(receipt.embedded_dimensions[0], width, receipt.id);+ Assert.AreEqual(receipt.embedded_dimensions[1], height, receipt.id);Assert.IsFalse(ti.crunchedCompression, image);Assert.AreEqual(TextureImporterCompression.Compressed, ti.textureCompression, image);Assert.GreaterOrEqual(ti.maxTextureSize, Math.Max(receipt.embedded_dimensions[0], receipt.embedded_dimensions[1]));diff --git a/unity/Assets/Tests/EditMode/OriginalModelsStreamingTests.cs b/unity/Assets/Tests/EditMode/OriginalModelsStreamingTests.csindex bcdd1fef2..a5a650747 100644--- a/unity/Assets/Tests/EditMode/OriginalModelsStreamingTests.cs+++ b/unity/Assets/Tests/EditMode/OriginalModelsStreamingTests.cs@@ -150,7 +150,9 @@ public class OriginalModelsStreamingTestsAssert.GreaterOrEqual(texture.maxTextureSize, Math.Max(width, height), id);Assert.IsFalse(texture.crunchedCompression, id);var web = texture.GetPlatformTextureSettings("WebGL");- Assert.GreaterOrEqual(web.maxTextureSize, Math.Max(width, height), id);+ // The generated houses' colour maps (this importer, _basecolor only) import at 2048 on the web (owner, 2 November 2026);+ // BuildingModelImportTests checks that cap.+ if (!CollectionCatalog.IsGeneratedHouse(id)) Assert.GreaterOrEqual(web.maxTextureSize, Math.Max(width, height), id);Assert.IsFalse(web.crunchedCompression, id);}}