fix 3d texts antialiasing render issue

This commit is contained in:
MihailRis 2026-07-27 01:18:36 +03:00
parent 53a9d47905
commit 40e73ca34b

View file

@ -233,8 +233,6 @@ void WorldRenderer::renderOpaque(
const EngineSettings& settings,
bool hudVisible
) {
texts->render(ctx, camera, settings, hudVisible, false);
float fogFactor = calcFogFactor();
auto& entityShader = assets.require<Shader>("entity");
@ -341,6 +339,7 @@ void WorldRenderer::renderFrameClassic(
bool hudVisible,
PostProcessing& postProcessing
) {
const auto& settings = engine.getSettings();
const auto& worldInfo = level.getWorld().getInfo();
DrawContext ctx = pctx.sub();
@ -351,6 +350,7 @@ void WorldRenderer::renderFrameClassic(
skybox->draw(
level.environment, ctx, camera, worldInfo.daytime, weather.clouds()
);
texts->render(ctx, camera, settings, hudVisible, false);
if (debug && hudVisible) {
renderDebugLines(ctx, camera);
@ -404,6 +404,7 @@ void WorldRenderer::renderFrameAdvanced(
skybox->draw(
level.environment, ctx, camera, worldInfo.daytime, weather.clouds()
);
texts->render(ctx, camera, settings, hudVisible, false);
if (debug && hudVisible) {
renderDebugLines(ctx, camera);
}