Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--[WIP][Habitat 3.0] - PBR tests and defaults #2230

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ corrade_add_test(
)
target_include_directories(GfxBatchHbaoTest PRIVATE ${CMAKE_CURRENT_BINARY_DIR})

corrade_add_test(
GfxPbrIblTest
GfxPbrIblTest.cpp
LIBRARIES
assets
core
gfx
metadata
)
target_include_directories(GfxPbrIblTest PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
corrade_add_test(
GfxReplayTest
GfxReplayTest.cpp
Expand Down
39 changes: 39 additions & 0 deletions src/tests/GfxPbrIblTest.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#include <Corrade/Containers/Optional.h>
#include <Corrade/TestSuite/Compare/Numeric.h>
#include <Corrade/TestSuite/Tester.h>
#include <Corrade/Utility/Path.h>

#include "esp/assets/ResourceManager.h"
#include "esp/core/Logging.h"
#include "esp/metadata/MetadataMediator.h"

#include "configure.h"

namespace {
namespace Cr = Corrade;
namespace Mn = Magnum;

using esp::assets::ResourceManager;
using esp::gfx::LightInfo;
using esp::gfx::LightPositionModel;
using esp::gfx::LightSetup;
using esp::metadata::MetadataMediator;
using esp::sim::Simulator;
using esp::sim::SimulatorConfiguration;

struct GfxPbrIblTest : Cr::TestSuite::Tester {
explicit GfxPbrIblTest();

esp::logging::LoggingContext loggingContext;

}; // struct GfxReplayTest

GfxPbrIblTest::GfxPbrIblTest() {}

} // namespace

CORRADE_TEST_MAIN(GfxPbrIblTest)