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

Increase splat accum smoothing

parent 205b2014
No related branches found
No related tags found
1 merge request!123Implements #189 using density to estimate radius
Pipeline #15142 passed
...@@ -392,7 +392,7 @@ __global__ void dibr_attribute_contrib_kernel( ...@@ -392,7 +392,7 @@ __global__ void dibr_attribute_contrib_kernel(
const float d = (float)depth_in.tex2D((int)screenPos.x, (int)screenPos.y) / 1000.0f; const float d = (float)depth_in.tex2D((int)screenPos.x, (int)screenPos.y) / 1000.0f;
const A input = generateInput(in.tex2D(x, y), params, worldPos); const A input = generateInput(in.tex2D(x, y), params, worldPos);
const float weight = ftl::cuda::weighting(fabs(camPos.z - d), 0.002f); const float weight = ftl::cuda::weighting(fabs(camPos.z - d), 0.02f);
const B weighted = make<B>(input) * weight; //weightInput(input, weight); const B weighted = make<B>(input) * weight; //weightInput(input, weight);
if (weight > 0.0f) { if (weight > 0.0f) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment