1
0
Fork 0

improve visuals

This commit is contained in:
Sen 2025-08-29 23:48:34 +02:00
parent c6217bf106
commit b25dd6161a
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
20 changed files with 100 additions and 99 deletions

View file

@ -724,6 +724,8 @@ public class Client implements IThreadListener {
private boolean textureFiltering = true;
@Variable(name = "gl_specular", category = CVarCategory.RENDER, display = "Beleuchtungseffekte")
public boolean specularColors = true;
@Variable(name = "gl_flat_shading", category = CVarCategory.RENDER, display = "Flaches Shading")
public boolean flatShading = false;
public static final Client CLIENT = new Client();

View file

@ -30,10 +30,12 @@ public class GuiGraphics extends GuiOptions {
this.addSelector("gl_light_blend", 0, 220, 240, 0);
this.addSelector("gl_specular", 242, 220, 240, 0);
this.addSelector("gl_tex_filter", 0, 240, 240, 0);
this.addSelector("gl_tex_mipmaps", 242, 240, 240, 0);
this.addSelector("gl_flat_shading", 0, 240, 240, 0);
this.addSelector("gl_tex_filter", 0, 260, 240, 0);
this.addSelector("gl_tex_mipmaps", 242, 260, 240, 0);
this.addSelector("gl_tex_anisotropic", 0, 260, 240, 0);
this.addSelector("gl_tex_anisotropic", 0, 280, 240, 0);
super.init(width, height);
}

View file

@ -57,6 +57,7 @@ public enum Shader {
context.integer("n_lights", 0);
context.color3("specular", Client.CLIENT.specularColors && !Client.CLIENT.setGamma && !Client.CLIENT.xrayActive ? 0xffffff : 0x000000);
context.bool("shade", Client.CLIENT.flatShading);
GlState.setActiveTexture(GL46.GL_TEXTURE0);
// glBindBufferBase(GL_UNIFORM_BUFFER, 0, world->light_buf);