Skip to content
Snippets Groups Projects

Implements #188 normal shading

Merged Nicolas Pope requested to merge feature/188/shading into master
6 files
+ 60
23
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -376,7 +376,6 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
cv::Mat tmp;
switch(channel_) {
case Channel::Normals:
case Channel::Energy:
if (depth_.rows == 0) { break; }
visualizeEnergy(depth_, tmp, 10.0);
@@ -400,6 +399,7 @@ const GLTexture &ftl::gui::Camera::captureFrame() {
case Channel::Flow:
case Channel::Confidence:
case Channel::Normals:
case Channel::Right:
if (depth_.rows == 0 || depth_.type() != CV_8UC3) { break; }
texture_.update(depth_);
Loading