with this code, I can clear the background and add a color:
gl.glEnable(GL10.GL_DEPTH_TEST);
gl.glClearColor(0.0f, 0.25f, 0.35f, 1.0f);
gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
How can i change this to have a linear-gradient Background? e.g. White color at the top and blue color at the bottom?
There’s no method to clear to a gradient, but I’d just draw a colored quad instead of clearing the color: