From 57b8a480b89250019c393e845ae4b774ae0246be Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Tue, 29 Oct 2019 11:10:52 +0200
Subject: [PATCH] Fix for bad colour weighting

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

diff --git a/components/renderers/cpp/src/reprojection.cu b/components/renderers/cpp/src/reprojection.cu
index 53ec03ebb..ed5580ac5 100644
--- a/components/renderers/cpp/src/reprojection.cu
+++ b/components/renderers/cpp/src/reprojection.cu
@@ -88,7 +88,7 @@ __global__ void reprojection_kernel(
     
 	const float d2 = depth_src.tex2D((int)screenPos.x, (int)screenPos.y);
 	const A input = in.tex2D((int)screenPos.x, (int)screenPos.y); //generateInput(in.tex2D((int)screenPos.x, (int)screenPos.y), params, worldPos);
-	const float weight = 1.0f; //ftl::cuda::weighting(fabs(camPos.z - d2), 0.02f);
+	const float weight = ftl::cuda::weighting(fabs(camPos.z - d2), 0.02f);
 	const B weighted = make<B>(input) * weight; //weightInput(input, weight);
 
 	if (weight > 0.0f) {
-- 
GitLab