SaturnScreen temp fix

This commit is contained in:
2026-03-25 15:40:56 +01:00
parent 0f947b5115
commit 1d0c582729
@@ -67,25 +67,26 @@ public class SaturnScreenFabric extends Screen implements ScreenProvider {
mouseX *= 2; mouseX *= 2;
mouseY *= 2; mouseY *= 2;
if (client.world == null && client.getCurrentServerEntry() == null) { // if (client.world == null && client.getCurrentServerEntry() == null) {
ROTATING_PANORAMA_RENDERER.render(context, this.width, this.height, screen.backgroundOpacity, delta); // ROTATING_PANORAMA_RENDERER.render(context, this.width, this.height,
} // screen.backgroundOpacity, delta);
// }
PostEffectProcessor postEffectProcessor = this.client.getShaderLoader().loadPostEffect( // PostEffectProcessor postEffectProcessor =
Identifier.ofVanilla("blur"), // this.client.getShaderLoader().loadPostEffect(
DefaultFramebufferSet.MAIN_ONLY); // Identifier.ofVanilla("blur"),
// DefaultFramebufferSet.MAIN_ONLY);
if (postEffectProcessor != null) { // if (postEffectProcessor != null) {
float radius = screen.backgroundBlur * Math.min((float) elapsed / 700, 1.0f); // float radius = screen.backgroundBlur * Math.min((float) elapsed / 700, 1.0f);
postEffectProcessor.render( // postEffectProcessor.render(
this.client.getFramebuffer(), // this.client.getFramebuffer(),
this.pool, // this.pool,
pass -> pass.setUniform("Radius", radius) // pass -> pass.setUniform("Radius", radius)
); // );
} // }
RenderScope renderScope = new RenderScopeImpl(context.getMatrices(), RenderScope renderScope = new RenderScopeImpl(context);
((DrawContextAccessor) context).getVertexConsumers());
screen.render(renderScope, mouseX, mouseY, delta, elapsed); screen.render(renderScope, mouseX, mouseY, delta, elapsed);
} }