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

Ignore masked points

parent 1f3f491c
No related branches found
No related tags found
1 merge request!119Implements #182 splatting
......@@ -257,7 +257,7 @@ __global__ void dibr_attribute_contrib_kernel(
const int y = blockIdx.y*blockDim.y + threadIdx.y;
const float4 worldPos = points.tex2D(x, y);
if (worldPos.x == MINF) return;
if (worldPos.x == MINF || (!(params.m_flags & ftl::render::kShowDisconMask) && worldPos.w < 0.0f)) return;
const float3 camPos = params.m_viewMatrix * make_float3(worldPos);
if (camPos.z < params.camera.minDepth) return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment