Skip to content

Commit

Permalink
Add back LevelRenderer patch
Browse files Browse the repository at this point in the history
  • Loading branch information
XFactHD committed Dec 12, 2024
1 parent f994eaa commit 1c4037e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions patches/net/minecraft/client/renderer/LevelRenderer.java.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
--- a/net/minecraft/client/renderer/LevelRenderer.java
+++ b/net/minecraft/client/renderer/LevelRenderer.java
@@ -473,6 +_,9 @@
this.targets.entityOutline = framegraphbuilder.importExternal("entity_outline", this.entityOutlineTarget);
}

+ var setupEvent = net.neoforged.neoforge.client.ClientHooks.fireFrameGraphSetup(framegraphbuilder, this.targets, rendertargetdescriptor, frustum, p_109604_, p_254120_, p_323920_, p_348530_, profilerfiller);
+ flag2 |= setupEvent.isOutlineProcessingEnabled();
+
FramePass framepass = framegraphbuilder.addPass("clear");
this.targets.main = framepass.readsAndWrites(this.targets.main);
framepass.executes(() -> {
@@ -480,7 +_,7 @@
RenderSystem.clear(16640);
});
Expand Down

0 comments on commit 1c4037e

Please sign in to comment.