fix black screen in water

This commit is contained in:
MihailRis 2026-08-05 20:23:46 +03:00
parent 1be79b746f
commit f082d7608d

View file

@ -470,11 +470,16 @@ void WorldRenderer::renderFrame(
setupWorldShader(entityShader, hudcam, engine.getSettings(), 0.0f);
hands->render(camera);
}
renderBlockOverlay(pctx);
{
auto bctx = pctx.sub();
bctx.useTexture(advanced_pipeline::TARGET_COLOR, nullptr);
renderBlockOverlay(pctx);
}
glActiveTexture(GL_TEXTURE0);
}
#include <iostream>
void WorldRenderer::renderBlockOverlay(const DrawContext& wctx) {
int x = std::floor(player.currentCamera->position.x);
int y = std::floor(player.currentCamera->position.y);