如何降低OpenGL纹理的噪点

问题描述 投票:-1回答:1
GLES20.glEnable(GLES20.GL_SCISSOR_TEST);
GLES20.glScissor(0, 0, 100, 100);


GLES20.glClearColor(0.0f, 0.0f, 0.0f, 0.5f);

GLES10.glShadeModel(GL10.GL_SMOOTH);

GLES20.glClearDepthf(1.0f);

GLES20.glEnable(GL10.GL_DEPTH_TEST);

GLES20.glDepthFunc(GL10.GL_LEQUAL);

GLES20.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST);

GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);
GLES20.glDisable(GLES20.GL_SCISSOR_TEST);

enter image description here

整个屏幕我都在GLSurfaceView上收到噪音。我怎么能删除它?

android opengl-es camera
1个回答
0
投票

如前所述,有几种纹理过滤技术:NEAREST,bi / three LINIAR。看看这个令人敬畏的tutorial lesson 6。本教程中的Demo app。当然还有github的源代码。

© www.soinside.com 2019 - 2024. All rights reserved.