Skip to content

Commit

Permalink
Respond to XFact's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
FiniteReality committed Jan 9, 2025
1 parent ff68a10 commit 117c7af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,15 @@
}

@OnlyIn(Dist.CLIENT)
@@ -364,5 +_,8 @@
@@ -363,6 +_,11 @@
@Override
public String toString() {
return this.name;
}
+ }
+
+ @Nullable
+ public abstract ResourceDescriptor<T> getDescriptor();
+ public ResourceDescriptor<T> getDescriptor() {
+ return null;
}
}
}
7 changes: 4 additions & 3 deletions patches/net/minecraft/client/renderer/PostChain.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
continue;
default:
throw new MatchException(null, null);
@@ -95,17 +_,32 @@
@@ -95,17 +_,33 @@
Matrix4f matrix4f = new Matrix4f().setOrtho(0.0F, (float)p_361423_, 0.0F, (float)p_362735_, 0.1F, 1000.0F);
Map<ResourceLocation, ResourceHandle<RenderTarget>> map = new HashMap<>(this.internalTargets.size() + this.externalTargets.size());

Expand All @@ -29,8 +29,9 @@
+ useDepth |= renderDescriptor.useDepth();
+ useStencil |= renderDescriptor.useStencil();
+ } else {
+ useDepth |= p_361871_.get(resourcelocation).get().useDepth;
+ useStencil |= p_361871_.get(resourcelocation).get().useStencil;
+ var target = handle.get();
+ useDepth |= target.useDepth;
+ useStencil |= target.useStencil;
+ }
}

Expand Down

0 comments on commit 117c7af

Please sign in to comment.