Skip to content

Commit 0115e26

Browse files
authored
Merge pull request #5599 from sir-chaos/patch-1
Fix for stray point in center of screen
2 parents 3cf75e2 + c3e3e14 commit 0115e26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Source/Scene/PointCloud3DTileContent.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1018,11 +1018,13 @@ define([
10181018

10191019
if (hasNormals && backFaceCulling) {
10201020
vs += ' float visible = step(-normal.z, 0.0); \n' +
1021-
' gl_Position *= visible; \n';
1021+
' gl_Position *= visible; \n' +
1022+
' gl_PointSize *= visible; \n';
10221023
}
10231024

10241025
if (hasShowStyle) {
1025-
vs += ' gl_Position *= show; \n';
1026+
vs += ' gl_Position *= show; \n' +
1027+
' gl_PointSize *= show; \n';
10261028
}
10271029

10281030
vs += '} \n';

0 commit comments

Comments
 (0)