@@ -351,7 +351,7 @@ public async Task FlushAllAsyncKeepsCommonMaterialsAsSeparateSubmeshesWhileAtlas
351351 }
352352
353353 [ Fact ]
354- public async Task FlushAllAsyncKeepsBundledFacadeCommonTransformOnMaterial ( )
354+ public async Task FlushAllAsyncDemotesBundledFacadeCommonTransformToMeshUv ( )
355355 {
356356 NonDemCityObjectBaker baker = CreateBaker ( maxAtlasSize : 32 , tilePaddingPixels : 1 ) ;
357357
@@ -362,11 +362,14 @@ public async Task FlushAllAsyncKeepsBundledFacadeCommonTransformOnMaterial()
362362 ResoniteMaterialBinding material = Assert . Single ( cityObject . Materials ) ;
363363 Assert . Equal ( BundledDefaultMaterialFamilies . FacadeHighriseGlass , material . Family ) ;
364364 Assert . Equal ( ResoniteMaterialAssetScope . Common , material . AssetScope ) ;
365- Assert . Equal ( new ResoniteFloat2 ( 1.0 / 6.0 , 1.0 / 6.0 ) , material . TextureScale ) ;
366- Assert . Equal ( new ResoniteFloat2 ( 0.0 , 0.5 / 6.0 ) , material . TextureOffset ) ;
367- Assert . Equal ( new ResoniteFloat2 ( 0.0 , 0.0 ) , cityObject . Mesh . Vertices [ 0 ] . UV0 ) ;
368- Assert . Equal ( new ResoniteFloat2 ( 1.0 , 0.0 ) , cityObject . Mesh . Vertices [ 1 ] . UV0 ) ;
369- Assert . Equal ( new ResoniteFloat2 ( 0.0 , 1.0 ) , cityObject . Mesh . Vertices [ 2 ] . UV0 ) ;
365+ Assert . Null ( material . TextureScale ) ;
366+ Assert . Null ( material . TextureOffset ) ;
367+ Assert . Equal ( 0.0 , cityObject . Mesh . Vertices [ 0 ] . UV0 . X , 12 ) ;
368+ Assert . Equal ( 5.0 / 6.0 , cityObject . Mesh . Vertices [ 0 ] . UV0 . Y , 12 ) ;
369+ Assert . Equal ( 10.0 / 6.0 , cityObject . Mesh . Vertices [ 1 ] . UV0 . X , 12 ) ;
370+ Assert . Equal ( 5.0 / 6.0 , cityObject . Mesh . Vertices [ 1 ] . UV0 . Y , 12 ) ;
371+ Assert . Equal ( 0.0 , cityObject . Mesh . Vertices [ 2 ] . UV0 . X , 12 ) ;
372+ Assert . Equal ( 15.0 / 6.0 , cityObject . Mesh . Vertices [ 2 ] . UV0 . Y , 12 ) ;
370373 }
371374
372375 [ Fact ]
@@ -480,6 +483,8 @@ public async Task FlushAllAsyncKeepsWhitePreservedBundledFamilyMaterialsDedicate
480483 Assert . All ( preservedRoofMaterials , static material => Assert . Equal ( ResoniteMaterialAssetScope . PresentationSlotScoped , material . AssetScope ) ) ;
481484 Assert . Contains ( preservedRoofMaterials , static material => material . BundledVariantIndex == 0 && material . TextureOffset is null ) ;
482485 Assert . Contains ( preservedRoofMaterials , static material => material . BundledVariantIndex == 1 && material . TextureOffset is null ) ;
486+ Assert . NotEqual ( new ResoniteFloat2 ( 0.0 , 0.0 ) , cityObject . Mesh . Vertices [ 3 ] . UV0 ) ;
487+ Assert . NotEqual ( new ResoniteFloat2 ( 0.0 , 0.0 ) , cityObject . Mesh . Vertices [ 6 ] . UV0 ) ;
483488 }
484489
485490 [ Fact ]
@@ -573,8 +578,8 @@ public async Task FlushAllAsyncDemotesPrescopedWhiteBundledFamilyMaterialsWhenOf
573578 Assert . Equal ( 3 , cityObject . Materials . Count ) ;
574579 Assert . Equal ( 2 , preservedRoofMaterials . Length ) ;
575580 Assert . All ( preservedRoofMaterials , static material => Assert . Equal ( ResoniteMaterialAssetScope . PresentationSlotScoped , material . AssetScope ) ) ;
576- Assert . Contains ( preservedRoofMaterials , static material => material . BundledVariantIndex == 0 && material . TextureOffset == new ResoniteFloat2 ( 0.125 , 0.25 ) ) ;
577- Assert . Contains ( preservedRoofMaterials , static material => material . BundledVariantIndex == 1 && material . TextureOffset == new ResoniteFloat2 ( 0.25 , 0.5 ) ) ;
581+ Assert . Contains ( preservedRoofMaterials , static material => material . BundledVariantIndex == 0 && material . TextureOffset is null ) ;
582+ Assert . Contains ( preservedRoofMaterials , static material => material . BundledVariantIndex == 1 && material . TextureOffset is null ) ;
578583 }
579584
580585 [ Fact ]
0 commit comments