Skip to content
Snippets Groups Projects
Commit b79f82d1 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Improve norm vis colour range

parent 5f4cb368
No related branches found
No related tags found
1 merge request!115Implements #141 normals
This commit is part of merge request !115. Comments created here will be created in the context of that merge request.
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment