LWJGL(Minecraft)中的OpenGL抗质量

发布于 2025-02-09 16:45:41 字数 929 浏览 0 评论 0原文

是否有可能具有抗脉化着色器(如果是这样),或者只有基于下面信息的FBO才有可能。

我试图在Minecraft的GUI中添加抗凝聚力,这使LWJGL脱颖而出。

我首先遇到了这个 https://wwww.youtube.com/watch? 他在其中

谈论如何在lwjgl中进行抗质量,但是由于《我的世界》使用了另一种框架,

            Display.create((new PixelFormat()).withDepthBits(24).withSamples(8));
            GL11.glEnable(GL13.GL_MULTISAMPLE);

因此

在另一个视频中,他描述的是用fbos来做的。 https://wwwww.youtube.com/watch?v=hcboivvmmygk

我实施反混溶剂的唯一方法,或者是一种更简单的方法。

Optifine允许进行抗质量,但仅发生在Minecraft Games

​nofollow noreferrer“> ”在此处输入映像说明”

Is it possible to have an antialiasing shader (if so how) , or is it only possible with fbos based on information below.

.

I am trying to add anti aliasing to the gui in Minecraft which runs off lwjgl.

I first came upon this https://www.youtube.com/watch?v=Pdn13TRWEM0

In which he talks about how to make antialiasing in lwjgl, But since minecraft uses another framebuffer,

            Display.create((new PixelFormat()).withDepthBits(24).withSamples(8));
            GL11.glEnable(GL13.GL_MULTISAMPLE);

Dosen't work

From there in another video he describes doing it with fbos
https://www.youtube.com/watch?v=HCBoIvVmYgk

Would this be the only way for me to implement anti aliasing, or is it possible an easier way.

Optifine allows for antialiasing, but it only happens within minecraft gamesenter image description here

With no antialiasing a circle looks like thisenter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

妥活 2025-02-16 16:45:41

您正在使用哪个游戏版本和改装框架?有几种方法可以做到这一点,我碰巧在1.17的所有内容上都知道Fabricmc的一个。

(免责声明:此库是由我制作和维护的)

https://github.com/0x3c50/renderer 是现代面料的渲染库,其中包括一个可以用来渲染反辩药的saaframebuffer。只需将您的渲染代码包装在

MSAAFramebuffer.use(samples, () -> {
    // render
});

Which game version and modding framework are you using? There are a few ways of doing this, I happen to know one for fabricmc on everything up from 1.17.

(disclaimer: this library is made and maintained by me)

https://github.com/0x3C50/Renderer is a rendering library for modern fabric, that includes a MSAAFramebuffer you can use to render things anti aliased. Just wrap your rendering code in

MSAAFramebuffer.use(samples, () -> {
    // render
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文