Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to disable OpenGL line smoothing #5008

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package meteordevelopment.meteorclient.renderer;

import com.mojang.blaze3d.systems.RenderSystem;
import meteordevelopment.meteorclient.systems.config.Config;
import meteordevelopment.meteorclient.utils.Utils;
import meteordevelopment.meteorclient.utils.render.color.Color;
import net.minecraft.client.util.math.MatrixStack;
Expand Down Expand Up @@ -250,7 +251,11 @@ public void beginRender(MatrixStack matrices) {
else GL.disableDepth();
GL.enableBlend();
GL.disableCull();
GL.enableLineSmooth();

Config config = Config.get();
if (config.smoothLines.get()) {
GL.enableLineSmooth();
}

if (rendering3D) {
Matrix4fStack matrixStack = RenderSystem.getModelViewStack();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ public class Config extends System<Config> {

// Visual

public final Setting<Boolean> smoothLines = sgVisual.add(new BoolSetting.Builder()
.name("smooth-lines")
.description("Render lines smoothly. Disable if you are experiencing graphical issues.")
.defaultValue(true)
.build()
);

public final Setting<Boolean> customFont = sgVisual.add(new BoolSetting.Builder()
.name("custom-font")
.description("Use a custom font.")
Expand Down
Loading