Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6473857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:30:59+00:00 2026-05-25T06:30:59+00:00

OpenGL ES 2.0 doesn’t have the GL_POINT_SMOOTH definition which ES 1.0 does. This means

  • 0

OpenGL ES 2.0 doesn’t have the GL_POINT_SMOOTH definition which ES 1.0 does. This means code I was using to draw circles no longer works:

glEnable(GL_POINT_SMOOTH);
glPointSize(radius*2);
glDrawArrays(GL_POINTS,0,nPoints);

Is there an equivalent in ES 2.0, perhaps something to go in the vertex shader, or must I use polygons for each circle?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:30:59+00:00Added an answer on May 25, 2026 at 6:30 am

    You can use point sprites to emulate this. Just enable point sprites and you get a special variable gl_PointCoord that you can read in the fragment shader. This gives you the coordinates of the fragment in the square of the current point. You can just use these to read a texture that contains a circle (pixels not in circle have color of 0) and then discard every fragment, whose texture value is 0:

    if(texture2d(circle, gl_PointCoord).r < 0.1)
       discard;
    

    EDIT: Or you can do it without a texture, by trading texture access latency for computational complexity and just evaluating the circle equation:

    if(length(gl_PointCoord-vec2(0.5)) > 0.5)
        discard;
    

    This might be further optimized by dropping the square root (used in the length function) and comparing against the squared radius:

    vec2 pt = gl_PointCoord - vec2(0.5);
    if(pt.x*pt.x+pt.y*pt.y > 0.25)
        discard;
    

    But maybe the builtin length function is even faster than this, being optimized for length computation and maybe implemented directly in hardware.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am programming an OpenGL game for the iPhone, and have this code that
Does anyone have experience writing professional OpenGL games on Windows? For the Mac, due
Since the webgl/opengl doesn't support text drawing, so it possible to draw 3D object
In OpenGL, is it possible, to draw a sequence of polygons that doesn't check
I have a simple OpenGL application, which displays a line. I store x1, y1,
I have a series of standard OpenGL instructions in this form: glBegin(GL_TRIANGLES); // ...
I am porting some code from OpenGL to the ES version. I am using
In openGL, I have a 3D model I'm performing a ray-triangle intersection on, using
I know that OpenCL doesn't have support for complex numbers, and by what I've
Using OpenGL ES I am rendering a simple cube class that draws it at

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.