GL_POINT_SMOOTH equivalent

Hi,

I trying to draw round dots without sprites which makes slight jaggies when zoomed in. I come up with a glEnable option “GL_POINT_SMOOTH”, but not sure this is available on current three.js (or WebGL) and if there is something equivalent.

https://www.khronos.org/registry/OpenGL-Refpages/es1.1/xhtml/glEnable.xml

GL_POINT_SMOOTH
If enabled, draw points with proper filtering. Otherwise, draw aliased points. See glPointSize.

Any idea?

Thanks…Yui

I just found the solution.

The minimum fragment shader for three.js.

			varying vec3 vColor;
			void main() {
				if (dot(gl_PointCoord-0.5,gl_PointCoord-0.5)>0.25)
					discard;
				else
					gl_FragColor = vec4( vColor, 1.0 );
			}