From 9179c90fb937976ea1ffdbc018c080325c36ea53 Mon Sep 17 00:00:00 2001 From: Simon Tippe Date: Mon, 7 Mar 2022 01:15:45 +0100 Subject: [PATCH] DDGI probe count can now be changed --- CMakeLists.txt | 10 +++- README.md | 3 +- demo/App.cpp | 89 +++++++++++++++++++++---------- demo/App.h | 5 +- demo/CMakeLists.txt | 11 ++++ src/System.h | 2 +- src/lighting/IrradianceVolume.cpp | 17 ++++++ src/lighting/IrradianceVolume.h | 2 + 8 files changed, 107 insertions(+), 32 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50d4bb9cc..8a289337d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,11 @@ endif() # Options and compiler settings ################################################################### option(ATLAS_DEMO "Build demo executable" OFF) +option(ATLAS_IMGUI "Activate ImGui integration" OFF) + +if (ATLAS_DEMO) +set (ATLAS_IMGUI ON) +endif() set(CMAKE_CXX_STANDARD 17) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) @@ -74,7 +79,10 @@ else() add_subdirectory(${GLAD_LOCATION}) endif() add_subdirectory(${ATLAS_LOCATION}) -if (ATLAS_DEMO) + +if (ATLAS_IMGUI) add_subdirectory(${IMGUI_LOCATION}) +endif() +if (ATLAS_DEMO) add_subdirectory(${DEMO_LOCATION}) endif() diff --git a/README.md b/README.md index 3995d0993..8bc18c7b2 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ Run CMake with the option ATLAS_DEMO=ON to include the demo application in the p that and launches Visual Studio afterwards. After launching the IDE, set AtlasEngineDemo as your target. ### Including the library into your own project It is possible to compile the engine either as a shared or static library. Set the ATLAS_BUILD_SHARED option accordingly. To make -the library work with its dependencies, the root CMakeLists.txt of this repository has to be added as a subdirectory. +the library work with its dependencies, the root CMakeLists.txt of this repository has to be added as a subdirectory. As an entry +point to create an application from scratch take a look at the [Hello World tutorial](https://github.com/tippesi/Atlas-Engine/wiki/Hello-World). For reference, the source folder contains an empty [app header](https://github.com/tippesi/Atlas-Engine/blob/master/src/App.h) and an empty [app source](https://github.com/tippesi/Atlas-Engine/blob/master/src/App.cpp).