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

Add normal smoothing params

parent 34b84ab4
No related branches found
No related tags found
1 merge request!153Implements #223 colour based smooth, but is too simplistic
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment