diff --git a/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp b/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp index 216ccc08b..62fa95c53 100644 --- a/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp +++ b/Source/CesiumRuntime/Private/Tests/Google3dTilesLoadTest.cpp @@ -8,32 +8,33 @@ #include "Misc/AutomationTest.h" #include "Cesium3DTileset.h" +#include "CesiumSunSky.h" using namespace Cesium; IMPLEMENT_SIMPLE_AUTOMATION_TEST( FGoogleTilesPompidou, - "Cesium.Performance.GoogleTilesPompidou", + "Cesium.Performance.GoogleTiles.Pompidou", EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter) IMPLEMENT_SIMPLE_AUTOMATION_TEST( FGoogleTilesChrysler, - "Cesium.Performance.GoogleTilesChrysler", + "Cesium.Performance.GoogleTiles.Chrysler", EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter) IMPLEMENT_SIMPLE_AUTOMATION_TEST( FGoogleTilesGuggenheim, - "Cesium.Performance.GoogleTilesGuggenheim", + "Cesium.Performance.GoogleTiles.Guggenheim", EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter) IMPLEMENT_SIMPLE_AUTOMATION_TEST( FGoogleTilesDeathValley, - "Cesium.Performance.GoogleTilesDeathValley", + "Cesium.Performance.GoogleTiles.DeathValley", EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter) IMPLEMENT_SIMPLE_AUTOMATION_TEST( FGoogleTilesTokyo, - "Cesium.Performance.GoogleTilesTokyo", + "Cesium.Performance.GoogleTiles.Tokyo", EAutomationTestFlags::EditorContext | EAutomationTestFlags::PerfFilter) void setupForPompidou(SceneGenerationContext& context) { @@ -43,6 +44,9 @@ void setupForPompidou(SceneGenerationContext& context) { FRotator(-20.0, 0.0, 0.0), 60.0f); + context.sunSky->TimeZone = 2.0f; + context.sunSky->UpdateSun(); + ACesium3DTileset* tileset = context.world->SpawnActor(); tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl); tileset->SetTilesetSource(ETilesetSource::FromUrl); @@ -57,6 +61,9 @@ void setupForChrysler(SceneGenerationContext& context) { FRotator(-15.0, 0.0, 0.0), 60.0f); + context.sunSky->TimeZone = -4.0f; + context.sunSky->UpdateSun(); + ACesium3DTileset* tileset = context.world->SpawnActor(); tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl); tileset->SetTilesetSource(ETilesetSource::FromUrl); @@ -71,6 +78,9 @@ void setupForGuggenheim(SceneGenerationContext& context) { FRotator(-15.0, 90.0, 0.0), 60.0f); + context.sunSky->TimeZone = 2.0f; + context.sunSky->UpdateSun(); + ACesium3DTileset* tileset = context.world->SpawnActor(); tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl); tileset->SetTilesetSource(ETilesetSource::FromUrl); @@ -85,6 +95,9 @@ void setupForDeathValley(SceneGenerationContext& context) { FRotator(0, 90.0, 0.0), 60.0f); + context.sunSky->TimeZone = -7.0f; + context.sunSky->UpdateSun(); + ACesium3DTileset* tileset = context.world->SpawnActor(); tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl); tileset->SetTilesetSource(ETilesetSource::FromUrl); @@ -100,6 +113,9 @@ void setupForTokyo(SceneGenerationContext& context) { FRotator(-15, 300, 0.0), 60.0f); + context.sunSky->TimeZone = 9.0f; + context.sunSky->UpdateSun(); + ACesium3DTileset* tileset = context.world->SpawnActor(); tileset->SetUrl(Cesium::SceneGenerationContext::testGoogleUrl); tileset->SetTilesetSource(ETilesetSource::FromUrl);