|
@@ -7,12 +7,10 @@
|
|
|
|
|
|
|
|
#include "WallpaperEngine/Core/Scenes/CCamera.h"
|
|
#include "WallpaperEngine/Core/Scenes/CCamera.h"
|
|
|
#include "WallpaperEngine/Core/Scenes/CProjection.h"
|
|
#include "WallpaperEngine/Core/Scenes/CProjection.h"
|
|
|
-#include "WallpaperEngine/Core/Types/FloatColor.h"
|
|
|
|
|
|
|
|
|
|
namespace WallpaperEngine::Core
|
|
namespace WallpaperEngine::Core
|
|
|
{
|
|
{
|
|
|
using json = nlohmann::json;
|
|
using json = nlohmann::json;
|
|
|
- using namespace WallpaperEngine::Core::Types;
|
|
|
|
|
|
|
|
|
|
class CObject;
|
|
class CObject;
|
|
|
|
|
|
|
@@ -24,7 +22,7 @@ namespace WallpaperEngine::Core
|
|
|
const std::map<uint32_t, CObject*>& getObjects () const;
|
|
const std::map<uint32_t, CObject*>& getObjects () const;
|
|
|
const std::vector<CObject*>& getObjectsByRenderOrder () const;
|
|
const std::vector<CObject*>& getObjectsByRenderOrder () const;
|
|
|
|
|
|
|
|
- const FloatColor& getAmbientColor() const;
|
|
|
|
|
|
|
+ const glm::vec3& getAmbientColor() const;
|
|
|
const bool isBloom() const;
|
|
const bool isBloom() const;
|
|
|
const double getBloomStrength() const;
|
|
const double getBloomStrength() const;
|
|
|
const double getBloomThreshold() const;
|
|
const double getBloomThreshold() const;
|
|
@@ -38,9 +36,9 @@ namespace WallpaperEngine::Core
|
|
|
const double getCameraShakeAmplitude() const;
|
|
const double getCameraShakeAmplitude() const;
|
|
|
const double getCameraShakeRoughness() const;
|
|
const double getCameraShakeRoughness() const;
|
|
|
const double getCameraShakeSpeed() const;
|
|
const double getCameraShakeSpeed() const;
|
|
|
- const FloatColor& getClearColor() const;
|
|
|
|
|
|
|
+ const glm::vec3& getClearColor() const;
|
|
|
Scenes::CProjection* getOrthogonalProjection() const;
|
|
Scenes::CProjection* getOrthogonalProjection() const;
|
|
|
- const FloatColor& getSkylightColor() const;
|
|
|
|
|
|
|
+ const glm::vec3& getSkylightColor() const;
|
|
|
const Scenes::CCamera* getCamera () const;
|
|
const Scenes::CCamera* getCamera () const;
|
|
|
|
|
|
|
|
protected:
|
|
protected:
|
|
@@ -49,7 +47,7 @@ namespace WallpaperEngine::Core
|
|
|
CScene (
|
|
CScene (
|
|
|
CContainer* container,
|
|
CContainer* container,
|
|
|
Scenes::CCamera* camera,
|
|
Scenes::CCamera* camera,
|
|
|
- FloatColor ambientColor,
|
|
|
|
|
|
|
+ glm::vec3 ambientColor,
|
|
|
CUserSettingBoolean* bloom,
|
|
CUserSettingBoolean* bloom,
|
|
|
double bloomStrength,
|
|
double bloomStrength,
|
|
|
double bloomThreshold,
|
|
double bloomThreshold,
|
|
@@ -63,9 +61,9 @@ namespace WallpaperEngine::Core
|
|
|
double cameraShakeAmplitude,
|
|
double cameraShakeAmplitude,
|
|
|
double cameraShakeRoughness,
|
|
double cameraShakeRoughness,
|
|
|
double cameraShakeSpeed,
|
|
double cameraShakeSpeed,
|
|
|
- FloatColor clearColor,
|
|
|
|
|
|
|
+ glm::vec3 clearColor,
|
|
|
Scenes::CProjection* orthogonalProjection,
|
|
Scenes::CProjection* orthogonalProjection,
|
|
|
- FloatColor skylightColor
|
|
|
|
|
|
|
+ glm::vec3 skylightColor
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
static const std::string Type;
|
|
static const std::string Type;
|
|
@@ -78,7 +76,7 @@ namespace WallpaperEngine::Core
|
|
|
Scenes::CCamera* m_camera;
|
|
Scenes::CCamera* m_camera;
|
|
|
|
|
|
|
|
// data from general section on the json
|
|
// data from general section on the json
|
|
|
- FloatColor m_ambientColor;
|
|
|
|
|
|
|
+ glm::vec3 m_ambientColor;
|
|
|
CUserSettingBoolean* m_bloom;
|
|
CUserSettingBoolean* m_bloom;
|
|
|
double m_bloomStrength;
|
|
double m_bloomStrength;
|
|
|
double m_bloomThreshold;
|
|
double m_bloomThreshold;
|
|
@@ -92,9 +90,9 @@ namespace WallpaperEngine::Core
|
|
|
double m_cameraShakeAmplitude;
|
|
double m_cameraShakeAmplitude;
|
|
|
double m_cameraShakeRoughness;
|
|
double m_cameraShakeRoughness;
|
|
|
double m_cameraShakeSpeed;
|
|
double m_cameraShakeSpeed;
|
|
|
- FloatColor m_clearColor;
|
|
|
|
|
|
|
+ glm::vec3 m_clearColor;
|
|
|
Scenes::CProjection* m_orthogonalProjection;
|
|
Scenes::CProjection* m_orthogonalProjection;
|
|
|
- FloatColor m_skylightColor;
|
|
|
|
|
|
|
+ glm::vec3 m_skylightColor;
|
|
|
|
|
|
|
|
std::map<uint32_t, CObject*> m_objects;
|
|
std::map<uint32_t, CObject*> m_objects;
|
|
|
std::vector<CObject*> m_objectsByRenderOrder;
|
|
std::vector<CObject*> m_objectsByRenderOrder;
|