mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-13 10:00:19 -07:00
Improved fog distance scaling
This commit is contained in:
parent
fec94fe629
commit
f80d7cbb61
4 changed files with 5 additions and 4 deletions
|
|
@ -94,12 +94,12 @@ public final class Static161 {
|
|||
gl.glFogf(GL2.GL_FOG_DENSITY, 0.95F);
|
||||
gl.glHint(GL2.GL_FOG_HINT, GL2.GL_FASTEST);
|
||||
int fogEnd = GlobalConfig.VIEW_DISTANCE;
|
||||
@Pc(65) int fogStart = fogEnd - 512 - offset;
|
||||
@Pc(65) int fogStart = fogEnd - (int)(GlobalConfig.VIEW_FADE_DISTANCE * 2.0f) - offset;
|
||||
if (fogStart < 50) {
|
||||
fogStart = 50;
|
||||
}
|
||||
gl.glFogf(GL2.GL_FOG_START, (float) fogStart);
|
||||
gl.glFogf(GL2.GL_FOG_END, (float) fogEnd - 256.0f);
|
||||
gl.glFogf(GL2.GL_FOG_END, (float) fogEnd - GlobalConfig.VIEW_FADE_DISTANCE);
|
||||
gl.glFogfv(GL2.GL_FOG_COLOR, fogColor, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue