@Override public void onDrawFrame(GL10 gl) { // 清除深度缓冲与颜色缓冲 GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT | GLES20.GL_COLOR_BUFFER_BIT); MatrixState.pushMatrix(); MatrixState.translate(0, -2, 0); desert.drawSelf(desertId); MatrixState.popMatrix(); // 开启混合 GLES20.glEnable(GLES20.GL_BLEND); // 设置混合因子 GLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA); MatrixState.pushMatrix(); MatrixState.translate(0, -2, 0); group.drawSelf(); MatrixState.popMatrix(); // 关闭混合 GLES20.glDisable(GLES20.GL_BLEND); }