From 6d734042774c409f48d3739cc84e21616fd80198 Mon Sep 17 00:00:00 2001 From: mschuetz Date: Sun, 12 Apr 2015 17:10:03 +0200 Subject: [PATCH] make blend depth dependent on world space point size --- src/materials/PointCloudMaterial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/materials/PointCloudMaterial.js b/src/materials/PointCloudMaterial.js index 447c346a..46698945 100644 --- a/src/materials/PointCloudMaterial.js +++ b/src/materials/PointCloudMaterial.js @@ -868,7 +868,7 @@ Potree.PointCloudMaterial.fs_points_rgb = [ " vec2 uv = gl_FragCoord.xy / vec2(screenWidth, screenHeight); ", " ", " float depth = texture2D(depthMap, uv).r; ", - " if(vLinearDepth > depth + blendDepth){ ", + " if(vLinearDepth > depth + vRadius){ ", " discard; ", " } ", " #endif ",