From cc3177ce34827db3cd49e0094b0342151c6f8dbe Mon Sep 17 00:00:00 2001 From: Philip Rideout Date: Wed, 13 Mar 2019 17:12:35 -0700 Subject: [PATCH] gltf_viewer: fix indirect light controls. --- samples/gltf_viewer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/samples/gltf_viewer.cpp b/samples/gltf_viewer.cpp index 0e192910ee..5d3501f0f0 100644 --- a/samples/gltf_viewer.cpp +++ b/samples/gltf_viewer.cpp @@ -185,6 +185,7 @@ int main(int argc, char** argv) { // Add the renderables to the scene. app.viewer->setAsset(app.asset, app.names); + app.viewer->setIndirectLight(FilamentApp::get().getIBL()->getIndirectLight()); // Leave FXAA enabled but we also enable MSAA for a nice result. The wireframe looks // much better with MSAA enabled.