mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
fix 3d texts antialiasing render issue
This commit is contained in:
parent
53a9d47905
commit
40e73ca34b
1 changed files with 3 additions and 2 deletions
|
|
@ -233,8 +233,6 @@ void WorldRenderer::renderOpaque(
|
||||||
const EngineSettings& settings,
|
const EngineSettings& settings,
|
||||||
bool hudVisible
|
bool hudVisible
|
||||||
) {
|
) {
|
||||||
texts->render(ctx, camera, settings, hudVisible, false);
|
|
||||||
|
|
||||||
float fogFactor = calcFogFactor();
|
float fogFactor = calcFogFactor();
|
||||||
|
|
||||||
auto& entityShader = assets.require<Shader>("entity");
|
auto& entityShader = assets.require<Shader>("entity");
|
||||||
|
|
@ -341,6 +339,7 @@ void WorldRenderer::renderFrameClassic(
|
||||||
bool hudVisible,
|
bool hudVisible,
|
||||||
PostProcessing& postProcessing
|
PostProcessing& postProcessing
|
||||||
) {
|
) {
|
||||||
|
const auto& settings = engine.getSettings();
|
||||||
const auto& worldInfo = level.getWorld().getInfo();
|
const auto& worldInfo = level.getWorld().getInfo();
|
||||||
|
|
||||||
DrawContext ctx = pctx.sub();
|
DrawContext ctx = pctx.sub();
|
||||||
|
|
@ -351,6 +350,7 @@ void WorldRenderer::renderFrameClassic(
|
||||||
skybox->draw(
|
skybox->draw(
|
||||||
level.environment, ctx, camera, worldInfo.daytime, weather.clouds()
|
level.environment, ctx, camera, worldInfo.daytime, weather.clouds()
|
||||||
);
|
);
|
||||||
|
texts->render(ctx, camera, settings, hudVisible, false);
|
||||||
|
|
||||||
if (debug && hudVisible) {
|
if (debug && hudVisible) {
|
||||||
renderDebugLines(ctx, camera);
|
renderDebugLines(ctx, camera);
|
||||||
|
|
@ -404,6 +404,7 @@ void WorldRenderer::renderFrameAdvanced(
|
||||||
skybox->draw(
|
skybox->draw(
|
||||||
level.environment, ctx, camera, worldInfo.daytime, weather.clouds()
|
level.environment, ctx, camera, worldInfo.daytime, weather.clouds()
|
||||||
);
|
);
|
||||||
|
texts->render(ctx, camera, settings, hudVisible, false);
|
||||||
if (debug && hudVisible) {
|
if (debug && hudVisible) {
|
||||||
renderDebugLines(ctx, camera);
|
renderDebugLines(ctx, camera);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue