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
No related branches found
No related tags found
1 merge request!151Implements #216 triangle renderer
...@@ -88,7 +88,7 @@ __global__ void reprojection_kernel( ...@@ -88,7 +88,7 @@ __global__ void reprojection_kernel(
const float d2 = depth_src.tex2D((int)screenPos.x, (int)screenPos.y); 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 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); 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.
Finish editing this message first!
Please register or to comment