Skip to content
Snippets Groups Projects

Implements #189 using density to estimate radius

Merged Nicolas Pope requested to merge feature/189/splatradius into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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 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);
if (weight > 0.0f) {
Loading