Post-processing: bloom, ambient occlusion, filmic tone mapping, colour grading, FXAA
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
fd6f56826e
commit
5be372d773
12 files changed
+619
-10
No files matched your search
+29
-1
@@ -118,7 +118,21 @@ bool saveScene(const Scene& scene, const std::string& path, std::string& error)
|
||||
{"groundShadow", look.groundShadow},
|
||||
{"groundShadowOpacity", look.groundShadowOpacity},
|
||||
{"rimStrength", look.rimStrength},
|
||||
{"rimColor", vec(look.rimColor)}};
|
||||
{"rimColor", vec(look.rimColor)},
|
||||
{"bloom", look.bloom},
|
||||
{"bloomStrength", look.bloomStrength},
|
||||
{"bloomThreshold", look.bloomThreshold},
|
||||
{"bloomRadius", look.bloomRadius},
|
||||
{"ambientOcclusion", look.ambientOcclusion},
|
||||
{"aoStrength", look.aoStrength},
|
||||
{"aoRadius", look.aoRadius},
|
||||
{"toneMapping", look.toneMapping == 1 ? "filmic" : "off"},
|
||||
{"exposure", look.exposure},
|
||||
{"contrast", look.contrast},
|
||||
{"saturation", look.saturation},
|
||||
{"temperature", look.temperature},
|
||||
{"vignette", look.vignette},
|
||||
{"fxaa", look.fxaa}};
|
||||
j["render"] = {{"width", scene.renderWidth},
|
||||
{"height", scene.renderHeight},
|
||||
{"transparent", scene.renderTransparent},
|
||||
@@ -233,6 +247,20 @@ bool loadScene(const std::string& path, Scene& scene, std::string& error) {
|
||||
read(*it, "groundShadowOpacity", look.groundShadowOpacity);
|
||||
read(*it, "rimStrength", look.rimStrength);
|
||||
readVec(*it, "rimColor", look.rimColor);
|
||||
read(*it, "bloom", look.bloom);
|
||||
read(*it, "bloomStrength", look.bloomStrength);
|
||||
read(*it, "bloomThreshold", look.bloomThreshold);
|
||||
read(*it, "bloomRadius", look.bloomRadius);
|
||||
read(*it, "ambientOcclusion", look.ambientOcclusion);
|
||||
read(*it, "aoStrength", look.aoStrength);
|
||||
read(*it, "aoRadius", look.aoRadius);
|
||||
look.toneMapping = it->value("toneMapping", std::string("off")) == "filmic" ? 1 : 0;
|
||||
read(*it, "exposure", look.exposure);
|
||||
read(*it, "contrast", look.contrast);
|
||||
read(*it, "saturation", look.saturation);
|
||||
read(*it, "temperature", look.temperature);
|
||||
read(*it, "vignette", look.vignette);
|
||||
read(*it, "fxaa", look.fxaa);
|
||||
}
|
||||
if (auto it = j.find("render"); it != j.end() && it->is_object()) {
|
||||
read(*it, "width", scene.renderWidth);
|
||||
|
||||
Reference in new issue
Block a user