Skip to content
Snippets Groups Projects
Commit 41522d02 authored by Philip Trettner's avatar Philip Trettner
Browse files

config by lambda

parent 8ddb1730
Branches
No related tags found
No related merge requests found
glow-extras @ f15b7398
Subproject commit ef463745e04f6bdb40b4cd2fc52b448e9c3ed180
Subproject commit f15b7398e7db82fafad5719e122e788807944dfa
......@@ -378,6 +378,12 @@ void advanced_configs(pm::vertex_attribute<tg::pos3> const& pos)
auto v = gv::view(pos, "explicit view configure");
v.configure(gv::no_grid, gv::no_outline);
}
// custom configure function
gv::view(pos, "config via lambda", [](gv::SceneConfig& cfg) {
cfg.enableShadows = false;
cfg.bgColorInner = {1, 0, 1};
});
}
void advanced_layouting(pm::vertex_attribute<tg::pos3> const& pos)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment