开发者

Smooth points OpenGL ES 2.0 using shaders

开发者 https://www.devze.com 2023-03-21 17:47 出处:网络
I am drawing 开发者_C百科some points using glDrawArrays(GL_POINTS, ...) and I would like to make them smooth round points instead of the squares. I know that there is no fixed function pipeline in Ope

I am drawing 开发者_C百科some points using glDrawArrays(GL_POINTS, ...) and I would like to make them smooth round points instead of the squares. I know that there is no fixed function pipeline in OpenGL ES 2.0 so I am wondering if there is an easy way of doing this with the fragment shader?

Thanks in advance,

ExtremeCoder


I would render the point as a textured quad. That is straight forward, will do the job, works on even the oldest OpenGL versions and is probably faster than a shader.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号