From 1a085d6d7d7c7c3c80268e2ed1561f7df0f823fd Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Thu, 31 Oct 2019 08:54:13 +0200
Subject: [PATCH] Add normal smoothing params

---
 components/renderers/cpp/src/tri_render.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/renderers/cpp/src/tri_render.cpp b/components/renderers/cpp/src/tri_render.cpp
index cfd81347c..abc5941c2 100644
--- a/components/renderers/cpp/src/tri_render.cpp
+++ b/components/renderers/cpp/src/tri_render.cpp
@@ -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
-- 
GitLab