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

Make draw edges optional in gui

parent de27e64c
No related branches found
No related tags found
1 merge request!88Implements #146 upsampling option
This commit is part of merge request !88. Comments created here will be created in the context of that merge request.
......@@ -306,7 +306,7 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
case ftl::rgbd::kChanDepth:
if (depth.rows == 0) { break; }
visualizeDepthMap(depth, tmp, 7.0);
drawEdges(rgb, tmp);
if (screen_->root()->value("showEdgesInDepth", false)) drawEdges(rgb, tmp);
texture_.update(tmp);
break;
......
......@@ -541,7 +541,7 @@ __global__ void dibr_attribute_contrib_kernel(
// Is this point near the actual surface and therefore a contributor?
const float d = ((float)depth_in.tex2D((int)screenPos.x, (int)screenPos.y)/1000.0f);
if (abs(d - camPos.z) > DEPTH_THRESHOLD) return;
//if (abs(d - camPos.z) > DEPTH_THRESHOLD) return;
// TODO:(Nick) Should just one thread load these to shared mem?
const float4 colour = make_float4(tex2D<uchar4>(camera.colour, x, y));
......
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