Skip to content
Snippets Groups Projects

Implements #223 colour based smooth, but is too simplistic

Merged Nicolas Pope requested to merge feature/223/presmooth into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -482,7 +482,7 @@ bool Triangular::render(ftl::rgbd::VirtualSource *src, ftl::rgbd::Frame &out) {
ftl::cuda::normals(accum_.createTexture<float4>(Channel::Normals, Format<float4>(camera.width, camera.height)),
temp_.createTexture<float4>(Channel::Normals),
temp_.getTexture<int>(Channel::Depth2),
1, 0.02f,
value("normal_radius", 1), value("normal_smoothing", 0.02f),
params_.camera, params_.m_viewMatrix.getFloat3x3(), params_.m_viewMatrixInverse.getFloat3x3(), stream_);
// Reprojection of colours onto surface
Loading