|
|
@@ -74,7 +74,7 @@ CScene* CScene::fromFile (const std::string& filename, CContainer* container)
|
|
|
auto camerashakeamplitude = jsonFindDefault <double> (*general_it, "camerashakeamplitude", 0.0f);
|
|
|
auto camerashakeroughness = jsonFindDefault <double> (*general_it, "camerashakeroughness", 0.0f);
|
|
|
auto camerashakespeed = jsonFindDefault <double> (*general_it, "camerashakespeed", 0.0f);
|
|
|
- auto clearcolor_it = jsonFindRequired (*general_it, "clearcolor", "General section must have clear color");
|
|
|
+ auto clearcolor = jsonFindUserConfig <std::string> (*general_it, "clearcolor", "1 1 1");
|
|
|
auto orthogonalprojection_it = jsonFindRequired (*general_it, "orthogonalprojection", "General section must have orthogonal projection info");
|
|
|
auto skylightcolor = jsonFindDefault <std::string> (*general_it, "skylightcolor", "0 0 0");
|
|
|
|
|
|
@@ -95,7 +95,7 @@ CScene* CScene::fromFile (const std::string& filename, CContainer* container)
|
|
|
camerashakeamplitude,
|
|
|
camerashakeroughness,
|
|
|
camerashakespeed,
|
|
|
- WallpaperEngine::Core::aToColorf(*clearcolor_it),
|
|
|
+ WallpaperEngine::Core::aToColorf(clearcolor),
|
|
|
Scenes::CProjection::fromJSON (*orthogonalprojection_it),
|
|
|
WallpaperEngine::Core::aToColorf(skylightcolor)
|
|
|
);
|