Skip to content
Snippets Groups Projects
Commit 96cbe2e6 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Allow clipping enable disable

parent d8aff7a4
Branches
Tags
No related merge requests found
Pipeline #14708 passed
......@@ -40,10 +40,14 @@ Splatter::Splatter(nlohmann::json &config, ftl::rgbd::FrameSet *fs) : ftl::rende
clip_.origin = MatrixConversion::toCUDA(r.matrix() * t.matrix());
clip_.size = make_float3(width, height, depth);
clipping_ = true;
clipping_ = value("clipping_enabled", true);
} else {
clipping_ = false;
}
on("clipping_enabled", [this](const ftl::config::Event &e) {
clipping_ = value("clipping_enabled", true);
});
}
Splatter::~Splatter() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment