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

后端 未结 5 547
灰色年华
灰色年华 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 06:41

    1. Try on a device. I don't trust the emulator for visual/graphics-related issues.
    2. Try gl.glEnable(GL10.GL_DITHER);. I'm not sure if this is on by default. Also: this makes drawing slower.

提交回复
热议问题