Skip to content
Snippets Groups Projects

Implements #141 normals

Merged Nicolas Pope requested to merge feature/141/normals into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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,
Loading