gltf_viewer: add --settings, prep for automation.

This commit is contained in:
Philip Rideout
2020-10-01 13:46:06 -07:00
parent 6658283617
commit fd142b9b84
7 changed files with 118 additions and 56 deletions

View File

@@ -368,13 +368,9 @@ void SimpleViewer::updateUserInterface() {
ImGui::Unindent();
}
mView->setDithering(mViewSettings.dithering);
mView->setAntiAliasing(mViewSettings.antiAliasing);
mView->setSampleCount(mViewSettings.sampleCount);
mView->setAmbientOcclusionOptions(mViewSettings.ssao);
mView->setBloomOptions(mViewSettings.bloom);
mView->setFogOptions(mViewSettings.fog);
mView->setTemporalAntiAliasingOptions(mViewSettings.taa);
// At this point, all View settings have been modified,
// so we can now push them into the Filament View.
applySettings(mViewSettings, mView);
if (mEnableSunlight) {
mScene->addEntity(mSunlight);
@@ -400,8 +396,6 @@ void SimpleViewer::updateUserInterface() {
lm.setShadowCaster(ci, mEnableShadows);
});
mView->setShadowType(mViewSettings.shadowType);
if (mAsset != nullptr) {
if (ImGui::CollapsingHeader("Hierarchy")) {
ImGui::Indent();