Skip to content

Commit c3e3e14

Browse files
committed
Set gl_Position and gl_PointSize
1 parent 143b48f commit c3e3e14

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_PointSize *= show; \n';
1026+
vs += ' gl_Position *= show; \n' +
1027+
' gl_PointSize *= show; \n';
10261028
}
10271029

10281030
vs += '} \n';

0 commit comments

Comments
 (0)