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

Allow disable of environment texture

parent 2710ac8f
No related branches found
No related tags found
1 merge request!171Implements #244 360 environment background
Pipeline #16428 passed
This commit is part of merge request !171. Comments created here will be created in the context of that merge request.
...@@ -499,7 +499,7 @@ bool Triangular::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) { ...@@ -499,7 +499,7 @@ bool Triangular::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) {
out.get<GpuMat>(Channel::Depth).setTo(cv::Scalar(1000.0f), cvstream); out.get<GpuMat>(Channel::Depth).setTo(cv::Scalar(1000.0f), cvstream);
if (env_image_.empty()) { if (env_image_.empty() || !value("environment_enabled", false)) {
out.get<GpuMat>(Channel::Colour).setTo(background_, cvstream); out.get<GpuMat>(Channel::Colour).setTo(background_, cvstream);
} else { } else {
auto pose = params.m_viewMatrixInverse.getFloat3x3(); auto pose = params.m_viewMatrixInverse.getFloat3x3();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment