Skip to content
Snippets Groups Projects

Viewer camera info, serialization, tonemapping

Merged Jonathan Kunstwald requested to merge feature/viewer-tonemapping-caminfo into develop
10 files
+ 179
7
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -96,7 +96,7 @@ public:
static command sceneNoOutline()
{
command res{instruction::ModifyScene};
res.data = [](Scene& s) { s.enableOutlines = true; };
res.data = [](Scene& s) { s.enableOutlines = false; };
return res;
}
@@ -133,6 +133,16 @@ public:
return res;
}
static command sceneTonemapping(float exposure)
{
command res{instruction::ModifyScene};
res.data = [exposure](Scene& s) {
s.enableTonemap = true;
s.tonemapExposure = exposure;
};
return res;
}
static command sceneCameraOrientation(tg::angle azimuth, tg::angle altitude, float distance)
{
command res{instruction::ModifyScene};
@@ -145,6 +155,17 @@ public:
return res;
}
static command sceneCameraTransform(tg::pos3 pos, tg::pos3 target)
{
command res{instruction::ModifyScene};
res.data = [pos, target](Scene& s) {
s.customCameraPosition = true;
s.cameraPosition = pos;
s.cameraTarget = target;
};
return res;
}
static command sceneClearAccum()
{
command res{instruction::ModifyScene};
Loading