Skip to content
Snippets Groups Projects

Implements #216 triangle renderer

Merged Nicolas Pope requested to merge feature/216/triangles into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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) {
Loading