BloCamLimb / ModernUI

Modern desktop framework from low-level 3D graphics API to high-level view model, for development of 2D/3D rendering software or game engine, with internationalization support and many new technologies.
GNU Lesser General Public License v3.0
285 stars 15 forks source link

[Bug] AllMusic安装现代化UI后字体显示出现问题 #230

Closed Harvey2433 closed 2 months ago

Harvey2433 commented 3 months ago

Describe the bug 相较于未安装ModernUI时,allmusic hud字体变粗变模糊

To Reproduce Steps to reproduce the behavior: 1.同时安装Modern UI和AllMusic Client Mod 2.搭建带有allmusic的服务器 3.进入服务器,播放歌曲,在歌曲hud上即可发现问题

Expected behavior 字体显示应和全局其他字体相同

Screenshots image

Environment

BloCamLimb commented 3 months ago

说来也是搞笑,原版RenderType的blend和ShaderInstance的blend不一致。原版先应用RenderType里的blend,然后再应用ShaderInstance的blend。而RenderType的blend由GlStateManager控制状态切换,ShaderInstance的由BlendMode实例控制状态切换,再用GlStateManager控制状态切换,这就导致了有时候Blend不生效。 不过这个问题可以单方面在ModernUI里解决,因为ModernUI用自定义Shader。

BloCamLimb commented 2 months ago

单独安装

没遇到问题 image

BloCamLimb commented 2 months ago

Cannot reproduce.