From b79f82d1f1eb34e85ba15fba3211497ddc97abb3 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Wed, 2 Oct 2019 11:02:10 +0300 Subject: [PATCH] Improve norm vis colour range --- components/renderers/cpp/src/normals.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/renderers/cpp/src/normals.cu b/components/renderers/cpp/src/normals.cu index cf64f4036..22654a3a4 100644 --- a/components/renderers/cpp/src/normals.cu +++ b/components/renderers/cpp/src/normals.cu @@ -62,7 +62,7 @@ __global__ void vis_normals_kernel(ftl::cuda::TextureObject<float4> norm, if (l == 0) return; n /= l; - output(x,y) = fabs(dot(ray, n))*7.0f; + output(x,y) = (1.0f + dot(ray, n))*3.5f; } void ftl::cuda::normal_visualise(ftl::cuda::TextureObject<float4> &norm, -- GitLab