Increase point size when camera gets closer

I want do increase the point size when the camera zooms in or ratate closer to the point.

I have found a solution in StackOverflow but that doesn’t respect the zoom, just the rotation.

1 Like

The following solves my problem:

gl_PointSize = size * projectionMatrix[0][0];
1 Like