5#include "Data/ProjectData.h"
6#include "Modules/ModuleManager.h"
7#include "Sea/SeaManager.h"
8#include "Lighting/LightManager.h"
9#include "Data/Serializer.h"
10#include "Menu/MainMenu.h"
11#include "Generators/MeshGeneratorManager.h"
12#include "TextureStore/TextureStore.h"
13#include "Misc/SupportersTribute.h"
14#include "Filters/FiltersManager.h"
15#include "Foliage/FoliagePlacement.h"
16#include "Sky/SkySettings.h"
17#include "Misc/OSLiscences.h"
18#include "Shading/ShadingManager.h"
19#include "Exporters/TextureBaker.h"
21#include "json/json.hpp"
30 Model *customBaseCopy;
46 Shader *wireframe =
nullptr;
48 Shader *postProcess =
nullptr;
51 Shader *meshNormals =
nullptr;
67 double meshGenerationTime = 0;
74 bool styleEditor =
false;
75 bool statsWindow =
false;
76 bool shaderEditorWindow =
false;
77 bool texturEditorWindow =
false;
78 bool seaEditor =
false;
79 bool textureStore =
false;
81 bool filtersManager =
false;
82 bool foliageManager =
false;
83 bool supportersTribute =
false;
84 bool skySettings =
false;
85 bool modulesManager =
false;
86 bool lightControls =
true;
87 bool cameraControls =
true;
88 bool shadingManager =
false;
89 bool textureBaker =
false;
102 bool usingBase =
true;
103 bool skyboxEnabled =
false;
105 bool autoUpdate =
false;
106 bool mouseButton1, mouseButton2, mouseButton3;
107 bool wireFrameMode =
false;
108 bool reqTexRfrsh =
false;
109 bool autoSave =
false;
110 bool exploreMode =
false;
111 bool iExploreMode =
false;
112 bool showFoliage =
true;
113 bool textureBake =
false;
114 bool useGPUForNormals =
false;
115 bool postProcess =
false;
116 bool autoAspectCalcRatio =
true;
117 std::atomic<bool> ruinning =
true;
118 std::atomic<bool> remeshing =
false;
131 float mouseSpeed = 25;
132 float scrollSpeed = 0.5f;
133 float mouseScrollAmount = 0;
134 float viewportMousePosX = 0;
135 float viewportMousePosY = 0;
140 int resolution = 256;
141 int numberOfNoiseTypes = 3;
142 int secondCounter = 0;
143 int textureBakeMode = 0;
144 int texBakeRes = 1024;
148 std::string currentOpenFilePath =
"";
149 std::string currentBaseModelPath =
"";
150 std::string kernelsIncludeDir =
"";
152 float viewportSize[4];
161 glm::vec3 UP = glm::vec3(0.0f, 1.0f, 0.0f);
162 glm::vec3 DOWN = glm::vec3(0.0f, -1.0f, 0.0f);
163 glm::vec3 FRONT = glm::vec3(0.0f, 0.0f, -1.0f);
164 glm::vec3 BACK = glm::vec3(0.0f, 1.0f, 1.0f);
166 std::string executableDir =
"";
167 std::string dataDir =
"";
168 std::string cacheDir =
"";
169 std::string texturesDir =
"";
170 std::string projectsDir =
"";
171 std::string tempDir =
"";
172 std::string shadersDir =
"";
173 std::string kernelsDir =
"";
174 std::string fontsDir =
"";
175 std::string liscensesDir =
"";
176 std::string skyboxDir =
"";
177 std::string modulesDir =
"";
178 std::string modelsDir =
"";
179 std::string configsDir =
"";
180 std::string logsDir =
"";
222 ApplicationMode mode = ApplicationMode::TERRAIN;
a class to store JSON values