It was possible to use fog color according to the OpenGL standard in the 
previous Android versions, but it no longer works in Jellybean. The color 
of the fog is no longer seen, all fog just becomes black. What can I do to 
get the fog colors shown on Jellybean? This is my code:

float[] fogColorsVfa;
FloatBuffer fogColorsBuffer;

fogColorsBuffer = FloatBuffer.allocate(4 * 4); 
fogColorsVfa = new float[4];
fogColorsVfa[0] = 0.5f;//yellow with some alpha
fogColorsVfa[1] = 1f;
fogColorsVfa[2] = 1f;
fogColorsVfa[3] = 0f; 
fogColorsBuffer.put(fogColorsVfa);


gl.glEnable(GL10.GL_FOG);
gl.glFogx(GL10.GL_FOG_MODE, GL10.GL_EXP);
gl.glFogfv(GL10.GL_FOG_COLOR, fogColorsBuffer);


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to