Rapthor
01-23-2007, 09:06 AM
Hello,
I tried to change the fog settings at runtime. But somehow the start and end ranges are incorrect. Testing the same settings right in the code I get a correct fog appearance.
Do I need to clear some fog values before I am able to reinitialize?
Gl.glFogf(Gl.GL_FOG_START, zFar - (zFar / 5f));
Gl.glFogf(Gl.GL_FOG_END, zFar - (zFar / 100f * 5));
I tried to change the fog settings at runtime. But somehow the start and end ranges are incorrect. Testing the same settings right in the code I get a correct fog appearance.
Do I need to clear some fog values before I am able to reinitialize?
Gl.glFogf(Gl.GL_FOG_START, zFar - (zFar / 5f));
Gl.glFogf(Gl.GL_FOG_END, zFar - (zFar / 100f * 5));