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

Fix for bad colour weighting

parent 8e8ca4f2
Branches main
No related tags found
Loading
......@@ -88,7 +88,7 @@ __global__ void reprojection_kernel(
const float d2 = depth_src.tex2D((int)screenPos.x, (int)screenPos.y);
const A input = in.tex2D((int)screenPos.x, (int)screenPos.y); //generateInput(in.tex2D((int)screenPos.x, (int)screenPos.y), params, worldPos);
const float weight = 1.0f; //ftl::cuda::weighting(fabs(camPos.z - d2), 0.02f);
const float weight = ftl::cuda::weighting(fabs(camPos.z - d2), 0.02f);
const B weighted = make<B>(input) * weight; //weightInput(input, weight);
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