Better Blur 图标

Better Blur

作者:rebot | 分类:数据包

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/resourcepack/better-blur
资源信息

Minecraft 版本: 24w09a

平台: minecraft

标签: core-shaders tweaks vanilla-like

资源介绍

Not required in 24w11a and above!

Note: This resource pack requires a full game restart to load correctly. A restart is also required after disabling the pack.

Improves the blur algorithm used in 24w09a's new GUI.

The vanilla blur algorithm uses an unweighted average of surrounding pixels, which produces a blocky appearance (especially look around the hotbar):

Vanilla blur

This resource pack slightly modifies the algorithm to reduce the weight of further away pixels, which produces a much nicer blur effect:

Better blur

This is the entire patch to the vanilla blur shader:

Code ```diff --- vanilla/assets/minecraft/shaders/program/blur.fsh 2024-02-28 12:37:42.000000000 +0000 +++ betterblur/assets/minecraft/shaders/program/blur.fsh 2024-02-28 18:44:39.232389841 +0000 @@ -28,7 +28,7 @@ // Accumulate smoothed blur float strength = 1.0 - abs(r / Radius); totalStrength = totalStrength + strength; - blurred = blurred + sampleValue; + blurred = blurred + (sampleValue * strength); } - fragColor = vec4(blurred.rgb / (Radius * 2.0 + 1.0), totalAlpha); + fragColor = vec4(blurred.rgb / totalStrength, totalAlpha); } ``` Given the `strength` and `totalStrength` variables are already in the vanilla shader but are unused, it seems possible that the blur algorithm was originally intended to be more similar to this resource pack.

I release this under CC0 1.0 Universal, although it probably isn't substantial enough to be eligible for copyright anyway.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Pridestone - Genderfluid

价格:0 墨喵币
下载量:0

查看详情
Minecraft Nomad

价格:0 墨喵币
下载量:0

查看详情
Glass Elytra

价格:0 墨喵币
下载量:0

查看详情
OP Waffles

价格:0 墨喵币
下载量:0

查看详情