How to get rid of Jagged edges in Android OpenGL ES?

后端 未结 5 542
灰色年华
灰色年华 2020-12-11 06:15

I have the following code:

public void onSurfaceCreated(GL10 gl, EGLConfig config) {
    gl.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);
    gl.glShadeModel(GL10.GL         


        
5条回答
  •  感情败类
    2020-12-11 07:04

    I just went through the same issues as you. I think what you're looking for is the following line of code:

    gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
    

提交回复
热议问题